Test the empty type case#2
Conversation
|
It seems that QuickCheck doesn't work well with the empty type case because of the prop :: [a] -> Boolinstantiated with Arbitrary a => Arbitrary [a]How about giving a warning when the empty type case is needed and let the user check it by hand? @favonia |
I think we should strive to be maximally useful for practical purposes. For example, if QuickCheck is of no help but we could prove that all functions will be observationally equal (with the Haskell |
|
Here is my rough idea to implement custom data D a = D1 | D2 | D3 aalong with the Arbitrary a => Arbitrary (D a)implemented by the user which generates
The first approach might have performance issue (?) and the second one will break the original probability distribution. Personally I prefer the second one. Any ideas? |
I want to double check my understanding. Will |
Oh sorry. If you mean the case |
No description provided.