summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-12 12:31:27 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2010-10-12 12:31:27 +0000
commit46069e07253cde9668a88683731666bdf7326e42 (patch)
treee0f8228f6b491829eb925f7eaadbb5e2da5fa781
parent7f5f17303e4488d9c4344ba481b3efc05d2fface (diff)
downloadscala-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.
-rw-r--r--test/files/scalacheck/.gitignore0
-rw-r--r--test/files/scalacheck/substringTests.scala3
2 files changed, 1 insertions, 2 deletions
diff --git a/test/files/scalacheck/.gitignore b/test/files/scalacheck/.gitignore
deleted file mode 100644
index e69de29bb2..0000000000
--- a/test/files/scalacheck/.gitignore
+++ /dev/null
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) =>