[Groonga-commit] groonga/groonga [master] [test][query-expansion] add a test for quoted column value.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 11日 (日) 22:01:22 JST


Kouhei Sutou	2011-09-11 13:01:22 +0000 (Sun, 11 Sep 2011)

  New Revision: fb5596ca28b2dcb290ca0b32c610068764ca4e4a

  Log:
    [test][query-expansion] add a test for quoted column value.

  Modified files:
    test/unit/core/test-command-select-query-expansion.c

  Modified: test/unit/core/test-command-select-query-expansion.c (+16 -0)
===================================================================
--- test/unit/core/test-command-select-query-expansion.c    2011-09-11 12:55:52 +0000 (7049cc3)
+++ test/unit/core/test-command-select-query-expansion.c    2011-09-11 13:01:22 +0000 (86b9c27)
@@ -227,6 +227,22 @@ test_expand_column_value(void)
 }
 
 void
+test_expand_column_value_with_space(void)
+{
+  cut_assert_equal_string(
+      "[[[2],"
+       "[[\"_id\",\"UInt32\"],"
+        "[\"_key\",\"Time\"],"
+        "[\"content\",\"Text\"]],"
+       "[2,1315753200.0,\"Start mroonga!\"],"
+       "[6,1316098800.0,\"Setup groonga storage engine!\"]]]",
+    send_command("select Diaries --sortby _id "
+                 "--match_columns content "
+                 "--query 'content:@\"groonga storage engine\"' "
+                 "--query_expand Synonyms.words"));
+}
+
+void
 test_expand_equal(void)
 {
   cut_assert_equal_string(




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