diff options
author | Burak Emir <emir@epfl.ch> | 2005-11-08 20:26:49 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2005-11-08 20:26:49 +0000 |
commit | 58dc9b6ad4ea2558f4dfc517efa0707cbb162a95 (patch) | |
tree | 320c1060a4218b9a2f0052cb43d32ec041a51d8f /test | |
parent | 5e03512552264e0b295edda96774d9160143ca27 (diff) | |
download | scala-58dc9b6ad4ea2558f4dfc517efa0707cbb162a95.tar.gz scala-58dc9b6ad4ea2558f4dfc517efa0707cbb162a95.tar.bz2 scala-58dc9b6ad4ea2558f4dfc517efa0707cbb162a95.zip |
added test case for NodeSeq.apply
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/xml01.check | 1 | ||||
-rw-r--r-- | test/files/jvm/xml01.scala | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/jvm/xml01.check b/test/files/jvm/xml01.check index 57a788c6a1..34ce38f67e 100644 --- a/test/files/jvm/xml01.check +++ b/test/files/jvm/xml01.check @@ -18,3 +18,4 @@ xpath \\ DESCENDANTS passed ok passed ok passed ok +<book><author>Peter Buneman</author><author>Dan Suciu</author><title>Data on ze web</title></book> diff --git a/test/files/jvm/xml01.scala b/test/files/jvm/xml01.scala index 0fe9abb016..4faa9fccad 100644 --- a/test/files/jvm/xml01.scala +++ b/test/files/jvm/xml01.scala @@ -23,6 +23,7 @@ object Test { def child = Elem(null, "world", e, sc); override def text = "" //def attributes = e; + override def text = ""; }; assertSameElements( List( 3 ), List( 3 )); @@ -173,5 +174,12 @@ object Test { Elem(null,"title",e,sc,Text("Data on ze web")), Elem(null,"title",e,sc,Text("Foundations of Programming Languages"))) ); + + + Console.println( + (parsedxml2 \\ "book" ){ n:Node => n \ "title" == "Data on ze web" } + ) } + + } |