null+****@clear*****
null+****@clear*****
2011年 8月 14日 (日) 23:59:54 JST
Kouhei Sutou 2011-08-14 14:59:54 +0000 (Sun, 14 Aug 2011)
New Revision: fa42182c0acc10b293b4ee40f040641a89ebf107
Log:
[select][test] add a test for match against not string. refs #1047
Modified files:
test/unit/core/test-command-select-filter-invalid.c
Modified: test/unit/core/test-command-select-filter-invalid.c (+12 -1)
===================================================================
--- test/unit/core/test-command-select-filter-invalid.c 2011-08-14 14:40:45 +0000 (707add2)
+++ test/unit/core/test-command-select-filter-invalid.c 2011-08-14 14:59:54 +0000 (3f4c41b)
@@ -1,6 +1,6 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
- Copyright(C) 2010 Kouhei Sutou <kou****@clear*****>
+ Copyright(C) 2010-2011 Kouhei Sutou <kou****@clear*****>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -24,6 +24,7 @@
#include "../lib/grn-assertions.h"
void test_no_operator_and_parentheses_column(void);
+void test_match_against_not_string(void);
static gchar *tmp_directory;
@@ -101,3 +102,13 @@ test_no_operator_and_parentheses_column(void)
"invalid function: <\"groonga\">",
"select Sites --filter \"_key != \\\"groonga\\\" ()\"");
}
+
+void
+test_match_against_not_string(void)
+{
+ grn_test_assert_send_command_error(
+ context,
+ GRN_INVALID_ARGUMENT,
+ "invalid function: <\"groonga\">",
+ "select Sites --filter \"_key @ uri");
+}