diff options
Diffstat (limited to 'test')
-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 ); + +} |