From c633e28b40ec2f7e195842a75dc98fa6b953d898 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Fri, 22 Dec 2006 09:13:47 +0000 Subject: fixed test case + strict checking for atom --- test/files/jvm/xml03syntax.check | 3 +-- test/files/jvm/xml03syntax.scala | 13 +++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/files/jvm/xml03syntax.check b/test/files/jvm/xml03syntax.check index b81c53e9b1..992f71d3bd 100644 --- a/test/files/jvm/xml03syntax.check +++ b/test/files/jvm/xml03syntax.check @@ -1,6 +1,5 @@ -() passed ok -() +passed ok passed ok world passed ok diff --git a/test/files/jvm/xml03syntax.scala b/test/files/jvm/xml03syntax.scala index 7ae6473302..e193af24d3 100644 --- a/test/files/jvm/xml03syntax.scala +++ b/test/files/jvm/xml03syntax.scala @@ -13,13 +13,18 @@ object Test { import NodeSeq.view import testing.UnitTest._ - val x0 = {} - val x00 = { } + val xNull = {null} // these used to be Atom(unit), changed to empty children + + assertSameElements( xNull.child, Nil ) + + val x0 = {} // these used to be Atom(unit), changed to empty children + val x00 = { } // dto. + val xa = { "world" } - assertEquals( handle[Unit](x0), {} ) - assertEquals( handle[Unit](x00), {} ) + assertSameElements( x0.child, Nil ) + assertSameElements( x00.child, Nil ) assertEquals( handle[String](xa),"world" ) val xb = { 1.5 } -- cgit v1.2.3