[Groonga-commit] groonga/groonga [master] [test] use human readable failure message assertion.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 19日 (月) 12:53:37 JST


Kouhei Sutou	2011-12-19 03:53:37 +0000 (Mon, 19 Dec 2011)

  New Revision: 6e9d9eb198b8cf4918369cc788d4925b3ea5c6b3

  Log:
    [test] use human readable failure message assertion.

  Modified files:
    test/unit/core/test-patricia-trie.c

  Modified: test/unit/core/test-patricia-trie.c (+2 -1)
===================================================================
--- test/unit/core/test-patricia-trie.c    2011-12-19 02:53:32 +0000 (38825bb)
+++ test/unit/core/test-patricia-trie.c    2011-12-19 03:53:37 +0000 (8a0d34e)
@@ -737,7 +737,8 @@ test_add_and_delete(gconstpointer data)
     }
   }
 
-  cut_assert_equal_int(0, grn_pat_size(context, trie));
+  actual_keys = grn_test_pat_get_keys(context, (grn_obj *)trie);
+  gcut_assert_equal_list_string(NULL, actual_keys);
 }
 
 #define cut_assert_truncate(key) do                                      \




Groonga-commit メーリングリストの案内
Back to archive index