Consider the following:
let longEnough (s:string) = s.Length > 10
let check (s:string) =
s.Length <= 10 ==> (longEnough s = false)
Check.Quick check
let (bad:string) = null
longEnough (bad)
I would have expected FsCheck to propose a null string as a counter-example. Would love to hear if this is by design (and why), or by accident.
Consider the following:
let longEnough (s:string) = s.Length > 10
let check (s:string) =
s.Length <= 10 ==> (longEnough s = false)
Check.Quick check
let (bad:string) = null
longEnough (bad)
I would have expected FsCheck to propose a null string as a counter-example. Would love to hear if this is by design (and why), or by accident.