Probably a stupid question, but how do I generate a list of a specific size for FSCheck?
I can restrict using:
let fn_of_2_check xs = (xs.Length=2) ==> fn_of_2 xs
but, obviously, this will throw away loads of lists.
Here fn_of_2
does some test on lists of length 2
only and returns true
or false
.