mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 05:06:37 +02:00
Fix for recent iset-adjoin-node! changes.
This commit is contained in:
parent
0c7a559627
commit
2b3a85d7e7
2 changed files with 5 additions and 2 deletions
|
@ -121,13 +121,13 @@
|
|||
(cond
|
||||
;; aaaa...
|
||||
;; ...bbbb
|
||||
((< b-end a-start)
|
||||
((<= b-end a-start)
|
||||
(if (iset-should-merge-left? a b)
|
||||
(iset-merge-left! a b)
|
||||
(iset-adjoin-node-left! a b)))
|
||||
;; ...aaaa
|
||||
;; bbbb...
|
||||
((> b-start a-end)
|
||||
((>= b-start a-end)
|
||||
(if (iset-should-merge-right? a b)
|
||||
(iset-merge-right! a b)
|
||||
(iset-adjoin-node-right! a b)))
|
||||
|
|
|
@ -100,4 +100,7 @@
|
|||
(test-assert (iset<= (iset 97) (iset 97 117)))
|
||||
(test-assert (iset<= (iset 117) (iset 97 117)))
|
||||
|
||||
(test-assert (iset= (iset-union (iset 1 3) (iset 3 4)) (iset 1 3 4)))
|
||||
(test-assert (iset= (iset-union (iset 3) (iset 1 3)) (iset 1 3)))
|
||||
|
||||
(test-end)
|
||||
|
|
Loading…
Add table
Reference in a new issue