Skip to content

On isSearchTree #4

Description

@kwanghoon

isSearchTreeProp :: E3.Tree Int -> Bool

I got a test failure on isSearchTree as follows:
test/Spec.hs:134:5:
4) isSearchTree isSearchTree should only return true when the flattened tree is sorted
Falsified (after 2 tests):
Node 1 (Leaf (-1)) (Leaf 1)

However, the counterexample is not a search tree where 1 >= -1 but not 1 < 1.

  • Node 1 (Leaf (-1)) (Leaf 1)

@kwanghoon

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions