diff options
Diffstat (limited to 'test/files/jvm/xmlstuff.scala')
-rw-r--r-- | test/files/jvm/xmlstuff.scala | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/files/jvm/xmlstuff.scala b/test/files/jvm/xmlstuff.scala index 0d1aad5fac..7c66068b5a 100644 --- a/test/files/jvm/xmlstuff.scala +++ b/test/files/jvm/xmlstuff.scala @@ -61,13 +61,16 @@ passed ok </foo>; val pelems_1 = for( val x <- p \ "bar"; val y <- p \ "baz" ) yield { - Text(x.attribute("value").toString() + y.attribute("bazValue").toString()+ "!") + Text(x.attributes("value").toString() + y.attributes("bazValue").toString()+ "!") }; val pelems_2 = new NodeSeq { val theSeq = List(Text("38!"),Text("58!")) }; assertSameElements(pelems_1, pelems_2); - assertSameElements( - p \\ "@value", new NodeSeq { val theSeq = List(Text("3"), Text("5")) } - ); + + assertEquals(p \\ "@bazValue", Text("8")) + // the following won't work anymore because of group nodes + //assertSameElements( + // p \\ "@value", new NodeSeq { val theSeq = List(Text("3"), Text("5")) } + //); /* // more test cases !!! |