[Groonga-commit] groonga/groonga at 5f18be7 [master] test: update inspection result of grn_expr

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 21 18:46:22 JST 2014


Kouhei Sutou	2014-08-21 18:46:22 +0900 (Thu, 21 Aug 2014)

  New Revision: 5f18be712eb44473f54f237fcd99578725c1ea2d
  https://github.com/groonga/groonga/commit/5f18be712eb44473f54f237fcd99578725c1ea2d

  Message:
    test: update inspection result of grn_expr

  Modified files:
    test/unit/core/test-command-select-filter-invalid.c
    test/unit/core/test-expr-parse.c

  Modified: test/unit/core/test-command-select-filter-invalid.c (+1 -1)
===================================================================
--- test/unit/core/test-command-select-filter-invalid.c    2014-08-21 17:38:26 +0900 (6ece137)
+++ test/unit/core/test-command-select-filter-invalid.c    2014-08-21 18:46:22 +0900 (271f6f7)
@@ -111,6 +111,6 @@ test_match_against_not_string(void)
     GRN_INVALID_ARGUMENT,
     "invalid expression: can't use column as a value: "
     "<Sites.uri>: "
-    "<noname($1:\"\"){2_key GET_VALUE,0uri GET_VALUE,0MATCH}>",
+    "<noname($1:null){2_key GET_VALUE,0uri GET_VALUE,0MATCH}>",
     "select Sites --filter \"_key @ uri");
 }

  Modified: test/unit/core/test-expr-parse.c (+6 -5)
===================================================================
--- test/unit/core/test-expr-parse.c    2014-08-21 17:38:26 +0900 (8cf8522)
+++ test/unit/core/test-expr-parse.c    2014-08-21 18:46:22 +0900 (6fdd2db)
@@ -288,9 +288,10 @@ test_parse(gconstpointer data)
               gcut_data_get_int(data, "query_poyo_parse_level"));
   grn_expr_append_op(&context, cond, GRN_OP_AND, 2);
   grn_test_assert_expr(&context,
-                       "noname($1:0){2body GET_VALUE,0\"hoge\",4MATCH,"
-                                    "2body GET_VALUE,0\"moge\",0MATCH,4AND,"
-                                    "2body GET_VALUE,0\"poyo\",0MATCH,0AND}",
+                       "noname($1:null)"
+                       "{2body GET_VALUE,0\"hoge\",4MATCH,"
+                        "2body GET_VALUE,0\"moge\",0MATCH,4AND,"
+                        "2body GET_VALUE,0\"poyo\",0MATCH,0AND}",
                        cond);
   res = grn_table_create(&context, NULL, 0, NULL,
                          GRN_TABLE_HASH_KEY|GRN_OBJ_WITH_SUBREC, docs, NULL);
@@ -316,7 +317,7 @@ test_parse(gconstpointer data)
   PARSE(cond, gcut_data_get_string(data, "query_size"),
               gcut_data_get_int(data, "query_size_parse_level"));
   grn_test_assert_expr(&context,
-                       "noname($1:0){2size GET_VALUE,014,0EQUAL}",
+                       "noname($1:null){2size GET_VALUE,014,0EQUAL}",
                        cond);
   res = grn_table_create(&context, NULL, 0, NULL,
                          GRN_TABLE_HASH_KEY|GRN_OBJ_WITH_SUBREC, docs, NULL);
@@ -868,6 +869,6 @@ test_syntax_equal_string_reference_key(void)
   cut_assert_not_null(v);
   PARSE(cond, "author == \"morita\"", GRN_EXPR_SYNTAX_SCRIPT);
   grn_test_assert_expr(&context,
-                       "noname($1:0){2author GET_VALUE,0\"morita\",0EQUAL}",
+                       "noname($1:null){2author GET_VALUE,0\"morita\",0EQUAL}",
                        cond);
 }
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index