diff options
author | buraq <buraq@epfl.ch> | 2004-04-02 11:37:23 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-04-02 11:37:23 +0000 |
commit | 2b714fefd1e0d04fd8db74b42d4f4c7823f0e556 (patch) | |
tree | 504043077fd72ac1d6611838478b0c76895ee9f1 /test | |
parent | 381f20a04ba401e7f8dbbbc59120b2b1b64fbd48 (diff) | |
download | scala-2b714fefd1e0d04fd8db74b42d4f4c7823f0e556.tar.gz scala-2b714fefd1e0d04fd8db74b42d4f4c7823f0e556.tar.bz2 scala-2b714fefd1e0d04fd8db74b42d4f4c7823f0e556.zip |
error if whitespace missing betwe attr
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/xmlParsing002.check | 4 | ||||
-rw-r--r-- | test/files/neg/xmlParsing002.flags | 1 | ||||
-rw-r--r-- | test/files/neg/xmlParsing002.scala | 15 |
3 files changed, 20 insertions, 0 deletions
diff --git a/test/files/neg/xmlParsing002.check b/test/files/neg/xmlParsing002.check new file mode 100644 index 0000000000..f025013852 --- /dev/null +++ b/test/files/neg/xmlParsing002.check @@ -0,0 +1,4 @@ +xmlParsing002.scala:13: in XML literal: whitespace expected + val y = <hello foo="bar"baz="baz"></hello>.toString(); + ^ +one error found diff --git a/test/files/neg/xmlParsing002.flags b/test/files/neg/xmlParsing002.flags new file mode 100644 index 0000000000..49cf1af47f --- /dev/null +++ b/test/files/neg/xmlParsing002.flags @@ -0,0 +1 @@ +-Xmarkup diff --git a/test/files/neg/xmlParsing002.scala b/test/files/neg/xmlParsing002.scala new file mode 100644 index 0000000000..85e6b4384d --- /dev/null +++ b/test/files/neg/xmlParsing002.scala @@ -0,0 +1,15 @@ +//############################################################################ +// XML Parsing +//############################################################################ +// $Id$ + +import scala.testing.UnitTest._ ; + +import scala.xml._ ; + +object Test with Application { + + // error: no whitespace between attributes + val y = <hello foo="bar"baz="baz"></hello>.toString(); + +} |