summaryrefslogtreecommitdiff
path: root/test/etap/063-kt-get-leaves.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/etap/063-kt-get-leaves.t')
-rwxr-xr-xtest/etap/063-kt-get-leaves.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/etap/063-kt-get-leaves.t b/test/etap/063-kt-get-leaves.t
index 9e366ff8..342657bf 100755
--- a/test/etap/063-kt-get-leaves.t
+++ b/test/etap/063-kt-get-leaves.t
@@ -22,7 +22,7 @@ test() ->
couch_key_tree:get(TwoChildSibs, [{0, "1"}]),
"extract a subtree."
),
-
+
etap:is(
{[{"bar", {1, ["1a", "1"]}}],[]},
couch_key_tree:get(TwoChildSibs, [{1, "1a"}]),
@@ -34,13 +34,13 @@ test() ->
couch_key_tree:get_key_leafs(TwoChildSibs, [{0, "x"}]),
"gather up the leaves."
),
-
+
etap:is(
{[{"bar", {1, ["1a","1"]}}],[]},
couch_key_tree:get_key_leafs(TwoChildSibs, [{1, "1a"}]),
"gather up the leaves."
),
-
+
etap:is(
{[{"bar", {1, ["1a","1"]}},{"bar",{1, ["1b","1"]}}],[]},
couch_key_tree:get_key_leafs(TwoChildSibs, [{0, "1"}]),
@@ -52,7 +52,7 @@ test() ->
couch_key_tree:get_full_key_paths(TwoChildSibs, [{0, "1"}]),
"retrieve full key paths."
),
-
+
etap:is(
{[{1,[{"1a", "bar"},{"1", "foo"}]}],[]},
couch_key_tree:get_full_key_paths(TwoChildSibs, [{1, "1a"}]),
@@ -64,19 +64,19 @@ test() ->
couch_key_tree:get_all_leafs_full(Stemmed),
"retrieve all leaves."
),
-
+
etap:is(
[{1, [{"1a", "bar"},{"1", "foo"}]}, {1, [{"1b", "bar"},{"1", "foo"}]}],
couch_key_tree:get_all_leafs_full(TwoChildSibs),
"retrieve all the leaves."
),
-
+
etap:is(
[{"bar", {2, ["1aa","1a"]}}],
couch_key_tree:get_all_leafs(Stemmed),
"retrieve all leaves."
),
-
+
etap:is(
[{"bar", {1, ["1a", "1"]}}, {"bar", {1, ["1b","1"]}}],
couch_key_tree:get_all_leafs(TwoChildSibs),