diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-01-13 11:02:19 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-01-13 11:02:19 +0000 |
commit | a85358f76adc5d9346b78c8a1d8a189918a4e7f5 (patch) | |
tree | 1038669c5250b83a3402c87f2e7e5d9989f0b94e /test | |
parent | dda8f67ce004e163bb7b93d1eec351df28d47c50 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/jvm/xml02.scala | 2 |
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( |