diff options
Diffstat (limited to 'test/files/jvm/unittest_xml.scala')
-rw-r--r-- | test/files/jvm/unittest_xml.scala | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/test/files/jvm/unittest_xml.scala b/test/files/jvm/unittest_xml.scala index 63375cd15a..1569bb13af 100644 --- a/test/files/jvm/unittest_xml.scala +++ b/test/files/jvm/unittest_xml.scala @@ -2,14 +2,8 @@ object Test { import scala.testing.SUnit._ - import scala.xml.{MetaData, Null, Parsing, PrefixedAttribute, UnprefixedAttribute } + import scala.xml.{MetaData, Null, Utility, PrefixedAttribute, UnprefixedAttribute } - class ParsingTest extends TestCase("scala.xml.Parsing") with Assert { - override def runTest = { - assertTrue(Parsing.isNameStart('b')) - assertFalse(Parsing.isNameStart(':')) - } - } class MetaDataTest extends TestCase("scala.xml.MetaData") with Assert { import scala.xml.{HasKeyValue, TopScope, NamespaceBinding, Node, Atom, Text } @@ -65,6 +59,10 @@ object Test { class UtilityTest extends TestCase("scala.xml.Utility") with Assert { def runTest() = { + assertTrue(Utility.isNameStart('b')) + assertFalse(Utility.isNameStart(':')) + + val x = <foo> <toomuchws/> </foo> @@ -101,14 +99,11 @@ object Test { def main(args:Array[String]) = { val ts = new TestSuite( - new ParsingTest, new MetaDataTest, new UtilityTest ) val tr = new TestResult() ts.run(tr) - for(val failure <- tr.failures) { - Console.println(failure) - } + tr.failures foreach Console.println } } |