diff options
author | buraq <buraq@epfl.ch> | 2004-03-30 17:05:46 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-03-30 17:05:46 +0000 |
commit | 6e1747c335587f75470d10d8ed21e0060c6e436f (patch) | |
tree | 8ce02df6747f8acb7954199bbf042f5b0eab5daa /test/files/run | |
parent | e52e120e4b6c7696d6f41057117da17e8287df76 (diff) | |
download | scala-6e1747c335587f75470d10d8ed21e0060c6e436f.tar.gz scala-6e1747c335587f75470d10d8ed21e0060c6e436f.tar.bz2 scala-6e1747c335587f75470d10d8ed21e0060c6e436f.zip |
added test case for character and entity refere...
added test case for character and entity reference parsing
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/xmlRef.check | 2 | ||||
-rw-r--r-- | test/files/run/xmlRef.flags | 1 | ||||
-rw-r--r-- | test/files/run/xmlRef.scala | 23 |
3 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/xmlRef.check b/test/files/run/xmlRef.check new file mode 100644 index 0000000000..049f160175 --- /dev/null +++ b/test/files/run/xmlRef.check @@ -0,0 +1,2 @@ +<foo>{</foo> +<foo> {<bar><baz></baz></bar><bar></bar></foo> diff --git a/test/files/run/xmlRef.flags b/test/files/run/xmlRef.flags new file mode 100644 index 0000000000..49cf1af47f --- /dev/null +++ b/test/files/run/xmlRef.flags @@ -0,0 +1 @@ +-Xmarkup diff --git a/test/files/run/xmlRef.scala b/test/files/run/xmlRef.scala new file mode 100644 index 0000000000..47bc5dd6dd --- /dev/null +++ b/test/files/run/xmlRef.scala @@ -0,0 +1,23 @@ +//############################################################################ +// XML Parsing +//############################################################################ +// $Id$ + +import scala.testing.UnitTest._ ; + +import scala.xml._ ; + +/** this file test just succesful run of the parser. There are no checks whether + * the encoding to Scala expressions is done correctly + */ +object Test with Application { + + val x1s = <foo>{</foo>.toString(); + + Console.println( x1s ); + + val x2 = <foo> {<bar><baz/></bar><bar/></foo>.toString(); + + Console.println( x2 ); + +} |