1
0
Fork 0

Docs and Tests fixups

master
Michael Raitza 2021-02-01 22:07:32 +01:00
parent b365f05b5d
commit 29f01bf3a2
3 changed files with 6 additions and 5 deletions

View File

@ -18,6 +18,8 @@ $nl
"Crit-bit trees conform to the assoc protocol." "Crit-bit trees conform to the assoc protocol."
; ;
ABOUT: "trees.cb"
HELP: CB{ HELP: CB{
{ $syntax "CB{ { key value }... }" } { $syntax "CB{ { key value }... }" }
{ $values { "key" "a key" } { "value" "a value" } } { $values { "key" "a key" } { "value" "a value" } }

View File

@ -53,14 +53,14 @@ IN: trees.cb.tests
! Collision ! Collision
{ {
CB{ { B{ 110 } B{ 110 } } } CB{ { B{ 110 } f } }
} [ } [
CB{ { f f } } CB{ { f f } }
B{ 110 } dup rot [ set-at ] keep f B{ 110 } rot [ set-at ] keep
] unit-test ] unit-test
! Colliding trees are still not equal ! Colliding trees are still not equal
{ f } [ { f } [
CB{ { f f } } CB{ { f f } }
CB{ { B{ 110 } B{ 110 } } } = CB{ { B{ 110 } f } } =
] unit-test ] unit-test

View File

@ -1,2 +1 @@
Critical bit trees as described in http://cr.yp.to/critbit.html. Critical bit trees as described in http://cr.yp.to/critbit.html
They are implemented as subclasses of trees.