From 9b68efaaee2585d01bf6400ac441cea0d18418b1 Mon Sep 17 00:00:00 2001 From: buraq Date: Fri, 2 Apr 2004 11:37:23 +0000 Subject: [PATCH] error if whitespace missing betwe attr git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@2964 5e8d7ff9-d8ef-0310-90f0-a4852d11357a --- test/files/neg/xmlParsing002.check | 4 ++++ test/files/neg/xmlParsing002.flags | 1 + test/files/neg/xmlParsing002.scala | 15 +++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 test/files/neg/xmlParsing002.check create mode 100644 test/files/neg/xmlParsing002.flags create mode 100644 test/files/neg/xmlParsing002.scala diff --git a/test/files/neg/xmlParsing002.check b/test/files/neg/xmlParsing002.check new file mode 100644 index 000000000..f02501385 --- /dev/null +++ b/test/files/neg/xmlParsing002.check @@ -0,0 +1,4 @@ +xmlParsing002.scala:13: in XML literal: whitespace expected + val y = .toString(); + ^ +one error found diff --git a/test/files/neg/xmlParsing002.flags b/test/files/neg/xmlParsing002.flags new file mode 100644 index 000000000..49cf1af47 --- /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 000000000..85e6b4384 --- /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 = .toString(); + +}