diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-12 12:31:27 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-12 12:31:27 +0000 |
commit | 46069e07253cde9668a88683731666bdf7326e42 (patch) | |
tree | e0f8228f6b491829eb925f7eaadbb5e2da5fa781 /test/files/scalacheck/substringTests.scala | |
parent | 7f5f17303e4488d9c4344ba481b3efc05d2fface (diff) | |
download | scala-46069e07253cde9668a88683731666bdf7326e42.tar.gz scala-46069e07253cde9668a88683731666bdf7326e42.tar.bz2 scala-46069e07253cde9668a88683731666bdf7326e42.zip |
Fixed substring test that was occasionally fail...
Fixed substring test that was occasionally failing on my machine
(and reporting the error for a different test case). Proper fix for
scalacheck is still pending. No review.
Diffstat (limited to 'test/files/scalacheck/substringTests.scala')
-rw-r--r-- | test/files/scalacheck/substringTests.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/scalacheck/substringTests.scala b/test/files/scalacheck/substringTests.scala index 2cb5fc0498..76260b9dd2 100644 --- a/test/files/scalacheck/substringTests.scala +++ b/test/files/scalacheck/substringTests.scala @@ -6,9 +6,8 @@ object Test extends Properties("String") { property("endsWith") = Prop.forAll((a: String, b: String) => (a+b).endsWith(b)) - // Is this really always true? property("concat") = Prop.forAll((a: String, b: String) => - (a+b).length > a.length && (a+b).length > b.length + (a+b).length >= a.length && (a+b).length >= b.length ) property("substring") = Prop.forAll((a: String, b: String) => |