diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-18 18:09:34 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-18 18:09:34 +0000 |
commit | 3869143cba26486193f8a79f1f6ca454a0ff729c (patch) | |
tree | 8ecbe5f525184043a70fa213c7124a2220cf7016 /test/files/neg | |
parent | 0af8d12102a49339d823d919c21e881f9c809ccf (diff) | |
download | scala-3869143cba26486193f8a79f1f6ca454a0ff729c.tar.gz scala-3869143cba26486193f8a79f1f6ca454a0ff729c.tar.bz2 scala-3869143cba26486193f8a79f1f6ca454a0ff729c.zip |
- Added test files for xml parsing and xml lite...
- Added test files for xml parsing and xml literals
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/xmlParsing001.check | 7 | ||||
-rw-r--r-- | test/files/neg/xmlParsing001.flags | 1 | ||||
-rw-r--r-- | test/files/neg/xmlParsing001.scala | 15 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test/files/neg/xmlParsing001.check b/test/files/neg/xmlParsing001.check new file mode 100644 index 0000000000..0debd1c2dd --- /dev/null +++ b/test/files/neg/xmlParsing001.check @@ -0,0 +1,7 @@ +xmlParsing001.scala:13: in XML literal: expected closing tag of hello + val y = <hello></hallo>.toString(); + ^ +xmlParsing001.scala:13: in XML literal: '>' expected instead of '.' + val y = <hello></hallo>.toString(); + ^ +two errors found diff --git a/test/files/neg/xmlParsing001.flags b/test/files/neg/xmlParsing001.flags new file mode 100644 index 0000000000..49cf1af47f --- /dev/null +++ b/test/files/neg/xmlParsing001.flags @@ -0,0 +1 @@ +-Xmarkup diff --git a/test/files/neg/xmlParsing001.scala b/test/files/neg/xmlParsing001.scala new file mode 100644 index 0000000000..d732eb3869 --- /dev/null +++ b/test/files/neg/xmlParsing001.scala @@ -0,0 +1,15 @@ +//############################################################################ +// XML Parsing +//############################################################################ +// $Id$ + +import scala.testing.UnitTest._ ; + +import scala.xml._ ; + +object Test with Application { + + // error: closing tag of hello not found + val y = <hello></hallo>.toString(); + +} |