Skip to content

Commit

Permalink
Use prop instead of check.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanparsons committed Apr 7, 2013
1 parent d25f907 commit f2f4287
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/src/test/scala/scalaz/concurrent/FutureTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ class FutureTest extends Spec {
}
}
"have a run method that returns" in {
"when constructed from Future.now" in check{(n: Int) =>
"when constructed from Future.now" in prop{(n: Int) =>
Future.now(n).run must_== n
}
"when constructed from Future.delay" in check{(n: Int) =>
"when constructed from Future.delay" in prop{(n: Int) =>
Future.delay(n).run must_== n
}
"when constructed from Future.fork" in check{(n: Int) =>
"when constructed from Future.fork" in prop{(n: Int) =>
Future.fork(Future.now(n)).run must_== n
}
"when constructed from Future.suspend" in check{(n: Int) =>
"when constructed from Future.suspend" in prop{(n: Int) =>
Future.suspend(Future.now(n)).run must_== n
}
"when constructed from Future.async" in check{(n: Int) =>
"when constructed from Future.async" in prop{(n: Int) =>
def callback(call: Int => Unit): Unit = call(n)
Future.async(callback).run must_== n
}
"when constructed from Future.apply" in check{(n: Int) =>
"when constructed from Future.apply" in prop{(n: Int) =>
Future.apply(n).run must_== n
}
}
Expand Down

0 comments on commit f2f4287

Please sign in to comment.