Skip to content

Instantly share code, notes, and snippets.

@jwmatthews
Created November 13, 2013 02:20
Show Gist options
  • Save jwmatthews/7442543 to your computer and use it in GitHub Desktop.
Save jwmatthews/7442543 to your computer and use it in GitHub Desktop.
property("findMin1") = forAll { (a: Int, b: Int) =>
(a != b) ==> {
val h = insert(b, insert(a, empty))
findMin(h) == {if (a<b) a else b}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment