summaryrefslogtreecommitdiff
path: root/lib/splay/tests
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-05-06 16:40:54 +0200
committerSébastien Dailly <sebastien@dailly.me>2026-05-06 16:44:25 +0200
commita5efd7d15b4d049a4ed539ed5d9c2f1037d00973 (patch)
tree9b1f002f487b94c8ec7a6b37b761f2d2def10208 /lib/splay/tests
parentae4814880d7a2ad9c96e8f4001edf5032b9a7fb2 (diff)
Use the double dash as arguments in tests
Diffstat (limited to 'lib/splay/tests')
-rw-r--r--lib/splay/tests/splay.t44
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