diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-25 20:43:07 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-25 20:43:07 +0000 |
commit | 726ca37676b2d26e263cf25ea0f1592d97f3bfb5 (patch) | |
tree | 9cbb87f1677de1716c276070dedb1a910a308ac7 /test | |
parent | 9f5eff8768d4ad41ea37d71a73835206736ff6bc (diff) | |
download | scala-726ca37676b2d26e263cf25ea0f1592d97f3bfb5.tar.gz scala-726ca37676b2d26e263cf25ea0f1592d97f3bfb5.tar.bz2 scala-726ca37676b2d26e263cf25ea0f1592d97f3bfb5.zip |
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.
Diffstat (limited to 'test')
-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 } } |