This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch mango-eunit-test-fixes
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 380a6ffb6e3bc1d69fccd84aa23ac89ed2b54ec3
Author: Jay Doane <[email protected]>
AuthorDate: Fri Feb 14 01:20:18 2020 -0800

    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`.
---
 src/mango/src/mango_cursor_view.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mango/src/mango_cursor_view.erl 
b/src/mango/src/mango_cursor_view.erl
index a986844..22ff6a8 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.

Reply via email to