Test count and contains.
This commit is contained in:
parent
5fc654d57e
commit
0683a20166
1 changed files with 17 additions and 0 deletions
|
@ -189,6 +189,23 @@
|
|||
((bst? 'fixnum) "string"))
|
||||
(test-true bst-empty?
|
||||
(bst-empty? (make-bst 'fixnum eq? <)))
|
||||
(test-true bst-contains?
|
||||
(bst-contains?
|
||||
(bst-set
|
||||
(make-bst 'fixnum eq? <)
|
||||
1 2) 1))
|
||||
(test-false bst-contains?
|
||||
(bst-contains? (make-bst 'fixnum eq? <) 1))
|
||||
(test-equal? bst-count
|
||||
(bst-count
|
||||
(make-bst 'fixnum eq? <))
|
||||
0)
|
||||
(test-equal? bst-count
|
||||
(bst-count
|
||||
(bst-set
|
||||
(make-bst 'fixnum eq? <)
|
||||
1 2))
|
||||
1)
|
||||
))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue