diff options
author | buraq <buraq@epfl.ch> | 2004-07-08 17:06:29 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-07-08 17:06:29 +0000 |
commit | 9e6bdbf4d80279dcb622a261da0b7794a2732725 (patch) | |
tree | ad734602f084000bf2365dd3a8ea640b88f5a6a0 /test/files/jvm/xmlstuff.scala | |
parent | c42214f9a3ef20854a72fc5a51d6e1755017dc52 (diff) | |
download | scala-9e6bdbf4d80279dcb622a261da0b7794a2732725.tar.gz scala-9e6bdbf4d80279dcb622a261da0b7794a2732725.tar.bz2 scala-9e6bdbf4d80279dcb622a261da0b7794a2732725.zip |
fix testcases
Diffstat (limited to 'test/files/jvm/xmlstuff.scala')
-rw-r--r-- | test/files/jvm/xmlstuff.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/jvm/xmlstuff.scala b/test/files/jvm/xmlstuff.scala index f05548aa96..e68f692bdb 100644 --- a/test/files/jvm/xmlstuff.scala +++ b/test/files/jvm/xmlstuff.scala @@ -141,7 +141,7 @@ object Test with Application { assertEquals( - new NodeSeq(List( parsedxml2 )) \\ "_", + (new NodeSeq { val theSeq = List( parsedxml2 ) }) \\ "_", List( Elem("","bib",e, @@ -192,7 +192,7 @@ object Test with Application { for( val x <- p \ "bar"; val y <- p \ "baz" ) yield { x.attribute("value") + y.attribute("bazValue")+ "!" }, - new NodeSeq(List(Text("38!"),Text("58!"))) + new NodeSeq { val theSeq = List(Text("38!"),Text("58!")) } ); val books = @@ -233,7 +233,7 @@ object Test with Application { // example Console.println( - for( val t @ <book><title>Blabla</title></book> <- new NodeSeq( books.child ).asList) + for( val t @ <book><title>Blabla</title></book> <- new NodeSeq { val theSeq = books.child }.asList) yield t ); |