summaryrefslogtreecommitdiff
path: root/test/files/jvm/xml02.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-01-13 11:02:19 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-01-13 11:02:19 +0000
commita85358f76adc5d9346b78c8a1d8a189918a4e7f5 (patch)
tree1038669c5250b83a3402c87f2e7e5d9989f0b94e /test/files/jvm/xml02.scala
parentdda8f67ce004e163bb7b93d1eec351df28d47c50 (diff)
downloadscala-a85358f76adc5d9346b78c8a1d8a189918a4e7f5.tar.gz
scala-a85358f76adc5d9346b78c8a1d8a189918a4e7f5.tar.bz2
scala-a85358f76adc5d9346b78c8a1d8a189918a4e7f5.zip
Use String's »matches« method instead of »conta...
Use String's »matches« method instead of »contains«.
Diffstat (limited to 'test/files/jvm/xml02.scala')
-rw-r--r--test/files/jvm/xml02.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/jvm/xml02.scala b/test/files/jvm/xml02.scala
index 2eabaf1fbc..ad1e95cbb0 100644
--- a/test/files/jvm/xml02.scala
+++ b/test/files/jvm/xml02.scala
@@ -39,7 +39,7 @@ object Test extends TestConsoleMain {
object DodgyNamespace extends TestCase("DodgyNamespace") with Assert {
override def runTest = {
val x = <flog xmlns:ee="http://ee.com"><foo xmlns:dog="http://dog.com"><dog:cat/></foo></flog>
- assertTrue(x.toString.contains("xmlns:dog=\"http://dog.com\""));
+ assertTrue(x.toString.matches(".*xmlns:dog=\"http://dog.com\".*"));
}
}
def suite = new TestSuite(