summaryrefslogtreecommitdiff
path: root/test/files/jvm
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-06-11 09:35:32 +0000
committerburaq <buraq@epfl.ch>2004-06-11 09:35:32 +0000
commitd03b5fd70e6514cd87e15de1fb49b63967857a8d (patch)
treedd1d9101e712c7f4cfb8c8f00852022ac93728fe /test/files/jvm
parentaa86bdc4153bc7fec3d04dd3999a1a43742d22e8 (diff)
downloadscala-d03b5fd70e6514cd87e15de1fb49b63967857a8d.tar.gz
scala-d03b5fd70e6514cd87e15de1fb49b63967857a8d.tar.bz2
scala-d03b5fd70e6514cd87e15de1fb49b63967857a8d.zip
bugfix in XML literal parsing
Diffstat (limited to 'test/files/jvm')
-rw-r--r--test/files/jvm/xmlLiterals.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/jvm/xmlLiterals.scala b/test/files/jvm/xmlLiterals.scala
index 13b2591790..f3ee124d33 100644
--- a/test/files/jvm/xmlLiterals.scala
+++ b/test/files/jvm/xmlLiterals.scala
@@ -157,14 +157,14 @@ object Test03Servlet {
<body>
<h2>Welcome</h2>
<p>
- { headerMsg }
+ {headerMsg }
</p>
<p>
{ ns:_* }
</p>
<hr/>
<p>
- { footerMsg }
+ {footerMsg}
</p>
<h2>Bye!</h2>
</body>
@@ -178,11 +178,11 @@ object Test03Servlet {
/** this is a recursive procedure that adds some attributes to the tree
*/
def beautify( n:Node ):Node = n match {
- case <td>{ xs @ _* }</td> =>
+ case <td>{xs @ _* }</td> =>
<td bgcolor="#AAAAFF" color="#222255">{ xs:_* }</td>
case <table>{ xs @ _* }</table> =>
- <table align="center">{ beautify( xs ):_* }</table>
+ <table align="center">{ beautify( xs ):_*}</table>
case Elem( label, _, xs @ _* ) =>
new Elem( label, beautify( xs ):_*)
@@ -241,7 +241,7 @@ object Test03Servlet {
val tryBrace = <try>Now escaped {{ braces } </try>;
assertEquals( tryBrace, Elem("try",e,Text("Now escaped { braces }")));
- val tryBrace2 = <try myAttrib={ (3+4).toString() }> cool ?</try>;
+ val tryBrace2 = <try myAttrib={(3+4).toString() }> cool ?</try>;
assertEquals( tryBrace2.attribute("myAttrib"), "7" );
/* Scala comments are not allowed in XML literals. see neg(2) */