From e56821baaf295980ff236373879a7c48ecc35d6f Mon Sep 17 00:00:00 2001 From: buraq Date: Mon, 14 Jun 2004 09:12:37 +0000 Subject: proper XML patterns, bugfix in literal parser, ... proper XML patterns, bugfix in literal parser, nodeBuffer added --- test/files/jvm/xmlLiterals.scala | 6 +++--- test/files/jvm/xmlstuff.check | 1 + test/files/jvm/xmlstuff.scala | 8 +++++++- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'test/files/jvm') diff --git a/test/files/jvm/xmlLiterals.scala b/test/files/jvm/xmlLiterals.scala index f3ee124d33..c751a5c8a7 100644 --- a/test/files/jvm/xmlLiterals.scala +++ b/test/files/jvm/xmlLiterals.scala @@ -160,7 +160,7 @@ object Test03Servlet { {headerMsg }

- { ns:_* } + { ns }


@@ -179,10 +179,10 @@ object Test03Servlet { */ def beautify( n:Node ):Node = n match { case {xs @ _* } => - { xs:_* } + { xs } case { xs @ _* }
=> - { beautify( xs ):_*}
+ { beautify( xs )}
case Elem( label, _, xs @ _* ) => new Elem( label, beautify( xs ):_*) diff --git a/test/files/jvm/xmlstuff.check b/test/files/jvm/xmlstuff.check index 9429214ffe..f8bab77aac 100644 --- a/test/files/jvm/xmlstuff.check +++ b/test/files/jvm/xmlstuff.check @@ -30,3 +30,4 @@ passed ok Blubabla rem 2 +List(Blabla) diff --git a/test/files/jvm/xmlstuff.scala b/test/files/jvm/xmlstuff.scala index 3e482e62b1..95295838af 100644 --- a/test/files/jvm/xmlstuff.scala +++ b/test/files/jvm/xmlstuff.scala @@ -226,8 +226,14 @@ object Test with Application { r \ "title" == t) yield { t } - { (r \ "remarks"):_* } + { r \ "remarks" } )); + // example + Console.println( + for( val t @ Blabla <- new NodeSeq( books.child ).asList) + yield t + ); + } -- cgit v1.2.3