Skip to content
Snippets Groups Projects
Commit 6fa8978c authored by Viktor Kuncak's avatar Viktor Kuncak
Browse files

stronger post in one example

parent dd284219
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ object BinarySearchTree {
} else {
n
}
}) ensuring(contents(_) != Set.empty[Int])
}) ensuring (contents(_) == contents(tree) ++ Set(value))
def contains(tree: Tree, value: Int) : Boolean = tree match {
case Leaf() => false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment