[Groonga-commit] groonga/groonga [master] use correct assertion for select error.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 10月 6日 (水) 10:30:58 JST


Kouhei Sutou	2010-10-06 01:30:58 +0000 (Wed, 06 Oct 2010)

  New Revision: da1aba99707c98fb5dd762bf957b751163659aad

  Log:
    use correct assertion for select error.

  Modified files:
    test/unit/story/test-taiyaki.c

  Modified: test/unit/story/test-taiyaki.c (+9 -10)
===================================================================
--- test/unit/story/test-taiyaki.c    2010-10-05 08:38:47 +0000 (f6a065c)
+++ test/unit/story/test-taiyaki.c    2010-10-06 01:30:58 +0000 (39df8eb)
@@ -193,16 +193,15 @@ test_in_rectangle_long_latitude(void)
 void
 test_in_rectangle_over_border(void)
 {
-  cut_assert_equal_string("[]",
-                          send_command(
-                            "select Shops "
-                            "--sortby '+name' "
-                            "--output_columns 'name, location' "
-                            "--filter 'geo_in_rectangle(location, "
-                            "\"35.73360x-139.7394\", \"-35.62614x139.7714\")'"));
-  grn_test_assert_error(GRN_FUNCTION_NOT_IMPLEMENTED,
-                        "geo_in_rectangle() with negative coordinate is not implemented.",
-                        context);
+  grn_test_assert_send_command_error(
+    context,
+    GRN_FUNCTION_NOT_IMPLEMENTED,
+    "geo_in_rectangle() with negative coordinate is not implemented.",
+    "select Shops "
+    "--sortby '+name' "
+    "--output_columns 'name, location' "
+    "--filter 'geo_in_rectangle(location, "
+    "\"35.73360x-139.7394\", \"-35.62614x139.7714\")'");
 }
 
 void




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