From 726ca37676b2d26e263cf25ea0f1592d97f3bfb5 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 25 Sep 2009 20:43:07 +0000 Subject: More accumulated XML work, including removing s... More accumulated XML work, including removing some bits which were deprecated long ago or are visibly abandoned. Hopefully this will be the last XML patch for a while. --- test/files/jvm/unittest_xml.scala | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'test/files/jvm') 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 = @@ -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 } } -- cgit v1.2.3