diff options
Diffstat (limited to 'lib/splay/tests')
| -rw-r--r-- | lib/splay/tests/splay.t | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/splay/tests/splay.t b/lib/splay/tests/splay.t index 628ccaa..64f77a6 100644 --- a/lib/splay/tests/splay.t +++ b/lib/splay/tests/splay.t @@ -6,9 +6,9 @@ See https://en.wikipedia.org/wiki/Splay_tree The root is the latest inserted node: - $ tests -splay_tree \ - > -add 5 \ - > -add 3 + $ tests --splay_tree \ + > --add 5 \ + > --add 3 digraph G { leaf_0 [shape=point] "3" -> leaf_0 @@ -19,9 +19,9 @@ The root is the latest inserted node: "5" -> leaf_2 } - $ tests -splay_tree \ - > -add 3 \ - > -add 5 + $ tests --splay_tree \ + > --add 3 \ + > --add 5 digraph G { "5" -> "3" leaf_0 [shape=point] @@ -34,11 +34,11 @@ The root is the latest inserted node: Collecting an element in the tree will push this node at the root: - $ tests -splay_tree \ - > -add 1 \ - > -add 2 \ - > -add 3 \ - > -get 2 + $ tests --splay_tree \ + > --add 1 \ + > --add 2 \ + > --add 3 \ + > --get 2 digraph G { "2" -> "1" leaf_0 [shape=point] @@ -52,12 +52,12 @@ Collecting an element in the tree will push this node at the root: "3" -> leaf_3 } - $ tests -splay_tree \ - > -add 1 \ - > -add 2 \ - > -add 3 \ - > -add 4 \ - > -get 1 + $ tests --splay_tree \ + > --add 1 \ + > --add 2 \ + > --add 3 \ + > --add 4 \ + > --get 1 digraph G { leaf_0 [shape=point] "1" -> leaf_0 @@ -76,11 +76,11 @@ Collecting an element in the tree will push this node at the root: Removing an element from the tree modify the structure - $ tests -splay_tree \ - > -add 1 \ - > -add 2 \ - > -add 3 \ - > -del 2 + $ tests --splay_tree \ + > --add 1 \ + > --add 2 \ + > --add 3 \ + > --del 2 digraph G { leaf_0 [shape=point] "1" -> leaf_0 |
