From 46069e07253cde9668a88683731666bdf7326e42 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Tue, 12 Oct 2010 12:31:27 +0000 Subject: 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. --- test/files/scalacheck/.gitignore | 0 test/files/scalacheck/substringTests.scala | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 test/files/scalacheck/.gitignore (limited to 'test') diff --git a/test/files/scalacheck/.gitignore b/test/files/scalacheck/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 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) => -- cgit v1.2.3