前回 [1] の記事を書いた後 ScalaCheck の生成しているテストケースにちょっと疑問を感じたので引き続きいろいろ試してみたらどうにも理不尽な現象に気がついた。 まず「任意の整数は10より小さい」という馬鹿みたいな性質をテストしてみる。 scala> check(property((x:Int) => x < 10)) *** Failed, after 20 successful tests: The arguments that caused the failure was: List(20) res0: scalacheck.TestStats = TestStats(TestFailed(List(20)),20,0) scala> check(property((x:Int) => x < 10)) *** Failed, after 15 successful test