diff options
author | Burak Emir <emir@epfl.ch> | 2006-12-22 09:13:47 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-12-22 09:13:47 +0000 |
commit | c633e28b40ec2f7e195842a75dc98fa6b953d898 (patch) | |
tree | a3902efdec67e504e3c2810073ee80689ca2b00a /test/files/jvm/xml03syntax.scala | |
parent | b360756b02ded533a443ff82d6e6ca36a3dfb053 (diff) | |
download | scala-c633e28b40ec2f7e195842a75dc98fa6b953d898.tar.gz scala-c633e28b40ec2f7e195842a75dc98fa6b953d898.tar.bz2 scala-c633e28b40ec2f7e195842a75dc98fa6b953d898.zip |
fixed test case + strict checking for atom
Diffstat (limited to 'test/files/jvm/xml03syntax.scala')
-rw-r--r-- | test/files/jvm/xml03syntax.scala | 13 |
1 files changed, 9 insertions, 4 deletions
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 = <hello>{}</hello> - val x00 = <hello>{ }</hello> + val xNull = <hello>{null}</hello> // these used to be Atom(unit), changed to empty children + + assertSameElements( xNull.child, Nil ) + + val x0 = <hello>{}</hello> // these used to be Atom(unit), changed to empty children + val x00 = <hello>{ }</hello> // dto. + val xa = <hello>{ "world" }</hello> - assertEquals( handle[Unit](x0), {} ) - assertEquals( handle[Unit](x00), {} ) + assertSameElements( x0.child, Nil ) + assertSameElements( x00.child, Nil ) assertEquals( handle[String](xa),"world" ) val xb = <hello>{ 1.5 }</hello> |