spatial-trees icon indicating copy to clipboard operation
spatial-trees copied to clipboard

test :random-search needs to check if expected is nil

Open Yehouda opened this issue 5 years ago • 0 comments

in spatial-tree-test.lisp, the test :random-search sometimes fails because the rectangle it searches for is really not in the tree, so the value of the variable expected is nil, and result is nil. Currently that is signaled as failure. It should do something like:

(if expected (is-true result) (is-false result))

Can also skip the set-difference tests when expected is nil, but these tests pass anyway.

Yehouda avatar Apr 02 '20 08:04 Yehouda