-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in QuickCheckHeap#genHeap function #1
Comments
It's been a while since I touched this code, but IIRC I was using IntelliJ IDEA -- maybe it's an Eclipse issue? Or maybe it's due to changes in a later version of Scala? |
Yes, I was thinking about Scala version. |
It's the scala version, but guys play fair and try to create your own. The corrected version for the scala should use const instead of value: lazy val genHeap: Gen[H] = for {
v <- arbitrary[Int]
h <- oneOf(const(empty), genHeap)
} yield insert(v, h) this fix #1 |
Yes @dgomesbr, that do the trick/fix. Thanks for the answer :) |
" This issue is the value() function. Try using Gen.const(empty), genHeap " |
Somehow I get a
any tips on what could possibly cause this, I am interested in learning from my mistakes. |
Hi Gleb,
Just cloned your quickcheck example solution and, first of all, I'd like to say that is a great and self explanatory example :)
The thing is that the code is not compiling.
The issue is in the QuickCheckHeap#genHeap function:
The specific issue is for the
value
method. The Eclipse Problems tab says: "not found: value value".Any help?
The text was updated successfully, but these errors were encountered: