diff options
author | Burak Emir <emir@epfl.ch> | 2006-09-06 23:28:18 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-09-06 23:28:18 +0000 |
commit | 206233021b29aaa890f08858e46e6c7491452b19 (patch) | |
tree | 4ea69b0b577cdc9fd83a8d3f890d0c4868551c32 /test | |
parent | f2b8a606c1904b97a9f15a57ea395b40f6b0ec18 (diff) | |
download | scala-206233021b29aaa890f08858e46e6c7491452b19.tar.gz scala-206233021b29aaa890f08858e46e6c7491452b19.tar.bz2 scala-206233021b29aaa890f08858e46e6c7491452b19.zip |
added indexOf method to Iterable, added squeeze...
added indexOf method to Iterable, added squeezeBlock code optimization
to PatternMatcher
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/xmlmore.check | 3 | ||||
-rw-r--r-- | test/files/jvm/xmlmore.scala | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/files/jvm/xmlmore.check b/test/files/jvm/xmlmore.check index b28255b3c2..29f144c89f 100644 --- a/test/files/jvm/xmlmore.check +++ b/test/files/jvm/xmlmore.check @@ -6,6 +6,5 @@ Heathen, fire worshipper or idolatrous, come! Come even if you broke your penitence a hundred times, Ours is the portal of hope, come as you are." Mevlana Celaleddin Rumi - - +<foo><br /></foo> End Test diff --git a/test/files/jvm/xmlmore.scala b/test/files/jvm/xmlmore.scala index 15adbcc891..c6322bc1ef 100644 --- a/test/files/jvm/xmlmore.scala +++ b/test/files/jvm/xmlmore.scala @@ -1,3 +1,5 @@ +object myBreak extends scala.xml.Unparsed("<br />") + object Test extends Application { val com = <!-- thissa comment --> val pi = <?this is a pi foo bar = && {{ ?> @@ -6,12 +8,13 @@ object Test extends Application { Heathen, fire worshipper or idolatrous, come! Come even if you broke your penitence a hundred times, Ours is the portal of hope, come as you are." - Mevlana Celaleddin Rumi + Mevlana Celaleddin Rumi]]> -]]> + val nazim = <foo>{myBreak}</foo> // shows use of unparsed Console println com Console println pi Console println crz // this guy will escaped, and rightly so + Console println nazim Console println "End Test" } |