I've got the following property I want to test using quickcheck:
prop_zip xs ys = length xs == length ys ==>
unzip (zip xs ys) == (xs,ys)
Eventhough it seems to be logically right according to the definition of zip and unzip, that this property should be correct fo lists of the same length, the quickcheck ends with:
*** Gave up! Passed only 49 tests.
Thanks in advance for any hint or advice!
xs
andys
are not of the same length. I suspect that the two lists are almost never of the same length, so almost all generated test cases are discarded, until quickcheck gives up. – Anelace