Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle non-adjustable trees in splay-tree->list #30

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

soegaard
Copy link
Member

Tests

(define s (make-adjustable-splay-tree))
(splay-tree-set! s 1 'a)
(splay-tree-set! s 2 'b)
(splay-tree-set! s 3 'c)
(splay-tree->list s)

(define t (make-splay-tree))
(splay-tree-set! t 1 'a)
(splay-tree-set! t 2 'b)
(splay-tree-set! t 3 'c)
(splay-tree->list t)

@sorawee
Copy link
Contributor

sorawee commented Jan 27, 2023

@soegaard
Copy link
Member Author

soegaard commented Feb 1, 2023

It does make sense to add tests - but it turns a 5 minute fix into a 1 hour fix for me.
Feel free to add some test cases - see also initial test case in the original PR.

@soegaard
Copy link
Member Author

soegaard commented Jun 6, 2023

Ping @rmculpepper

@mflatt mflatt merged commit c594c5a into racket:master Dec 7, 2023
sorawee added a commit that referenced this pull request Dec 7, 2023
sorawee added a commit that referenced this pull request Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants