This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5b2143
commit 2986946
Showing
10 changed files
with
301 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
checklite/src/test/scala/catalysts/checklite/AllTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,42 @@ | ||
package catalysts | ||
package checklite | ||
|
||
import catalysts.specbase.SpecBaseTests | ||
import catalysts.testkit._ | ||
|
||
|
||
import org.scalacheck.{Prop, Properties} | ||
|
||
class CheckliteSpecBaseTests extends Suite with SpecBaseTests[Prop, Properties] | ||
|
||
//import catalysts.lawkit.{LawSpecTests, LawTests} | ||
//class ScalatestLawTests extends Suite with LawTests | ||
//class ScalatestLawSpecTests extends Suite with LawSpecTests | ||
|
||
class CheckliteFSpecTests extends Suite with FSpecTests | ||
class CheckliteFSuiteTests extends Suite with FSuiteTests | ||
class CheckliteJUnitTests extends Suite with JUnitTests | ||
class CheckliteTestSpecTests extends Suite with TestSpecTests | ||
class ChecklitetWSpecTests extends Suite with WSpecTests | ||
|
||
|
||
object MyProps extends Properties("MyProps") { | ||
property("myProp1") = Prop.forAll { (l1: List[Int], l2: List[Int]) => | ||
l1.size + l2.size == (l1 ::: l2).size | ||
} | ||
} | ||
|
||
class CheckliteCoreTests extends Suite { | ||
|
||
//testing error condition | ||
val i = new InStringOps(null).apply(null) | ||
|
||
val p = Prop.forAll { (l1: List[Int], l2: List[Int]) => | ||
l1.size + l2.size == (l1 ::: l2).size } | ||
|
||
checkAll(MyProps) | ||
|
||
val p2 = MyProps withProp ("myProp2", p) | ||
|
||
checkAll("myProp3", p2) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.