summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2020-02-14 01:20:18 -0800
committerJay Doane <jaydoane@apache.org>2020-02-14 01:20:18 -0800
commit380a6ffb6e3bc1d69fccd84aa23ac89ed2b54ec3 (patch)
tree74bcad604e1fd646af8425b4bb61a818c973e116
parentcaceed494bc67a372b265c33063d9537fc4f6d58 (diff)
downloadcouchdb-380a6ffb6e3bc1d69fccd84aa23ac89ed2b54ec3.tar.gz
Fix mango_cursor_view tests
Wrap `RowProps` in a tuple, and correctly order assertions. Note that `does_not_run_match_on_doc_with_value_test` still fails with a `no_match`.
-rw-r--r--src/mango/src/mango_cursor_view.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mango/src/mango_cursor_view.erl b/src/mango/src/mango_cursor_view.erl
index a986844a2..22ff6a868 100644
--- a/src/mango/src/mango_cursor_view.erl
+++ b/src/mango/src/mango_cursor_view.erl
@@ -526,8 +526,8 @@ runs_match_on_doc_with_no_value_test() ->
]
}}
],
- {Match, _, _} = doc_member(Cursor, RowProps),
- ?assertEqual(Match, no_match).
+ {Match, _, _} = doc_member(Cursor, {RowProps}),
+ ?assertEqual(no_match, Match).
does_not_run_match_on_doc_with_value_test() ->
Cursor = #cursor {
@@ -548,8 +548,8 @@ does_not_run_match_on_doc_with_value_test() ->
]
}}
],
- {Match, _, _} = doc_member(Cursor, RowProps),
- ?assertEqual(Match, ok).
+ {Match, _, _} = doc_member(Cursor, {RowProps}),
+ ?assertEqual(ok, Match).
-endif.