Tetsuro IKEDA
null+****@clear*****
Thu Oct 4 10:19:33 JST 2012
Tetsuro IKEDA 2009-07-28 13:18:41 +0900 (Tue, 28 Jul 2009) New Revision: 3b88159b9e944316f8986e231a2ebbc0e4442d41 https://github.com/mroonga/mroonga/commit/3b88159b9e944316f8986e231a2ebbc0e4442d41 Log: fix test code regarding to mrn_column_info->gtype. Modified files: test/unit/test-driver.c Modified: test/unit/test-driver.c (+8 -0) =================================================================== --- test/unit/test-driver.c 2009-07-28 13:10:44 +0900 (4b0f370) +++ test/unit/test-driver.c 2009-07-28 13:18:41 +0900 (73bbbcc) @@ -459,11 +459,13 @@ void test_mrn_rnd_init() info->columns[0]->name = "c1"; info->columns[0]->name_size = strlen("c1"); info->columns[0]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[0]->gtype = GRN_DB_INT32; info->columns[0]->type = grn_ctx_at(ctx, GRN_DB_INT32); info->columns[1]->name = "c2"; info->columns[1]->name_size = strlen("c2"); info->columns[1]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[1]->gtype = GRN_DB_TEXT; info->columns[1]->type = grn_ctx_at(ctx, GRN_DB_TEXT); cut_assert_equal_int(0, mrn_create(ctx, info)); @@ -565,11 +567,13 @@ void test_mrn_table_size() info->columns[0]->name = "c1"; info->columns[0]->name_size = strlen("c1"); info->columns[0]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[0]->gtype = GRN_DB_INT32; info->columns[0]->type = grn_ctx_at(ctx, GRN_DB_INT32); info->columns[1]->name = "c2"; info->columns[1]->name_size = strlen("c2"); info->columns[1]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[1]->gtype = GRN_DB_TEXT; info->columns[1]->type = grn_ctx_at(ctx, GRN_DB_TEXT); cut_assert_equal_int(0, mrn_create(ctx, info)); @@ -610,21 +614,25 @@ void test_mrn_init_column_list() info->columns[0]->name = "c1"; info->columns[0]->name_size = strlen("c1"); info->columns[0]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[0]->gtype = GRN_DB_INT32; info->columns[0]->type = grn_ctx_at(ctx, GRN_DB_INT32); info->columns[1]->name = "c2"; info->columns[1]->name_size = strlen("c2"); info->columns[1]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[1]->gtype = GRN_DB_TEXT; info->columns[1]->type = grn_ctx_at(ctx, GRN_DB_TEXT); info->columns[2]->name = "c3"; info->columns[2]->name_size = strlen("c3"); info->columns[2]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[2]->gtype = GRN_DB_INT32; info->columns[2]->type = grn_ctx_at(ctx, GRN_DB_INT32); info->columns[3]->name = "c4"; info->columns[3]->name_size = strlen("c4"); info->columns[3]->flags |= GRN_OBJ_COLUMN_SCALAR; + info->columns[3]->gtype = GRN_DB_TEXT; info->columns[3]->type = grn_ctx_at(ctx, GRN_DB_TEXT); cut_assert_equal_int(0, mrn_create(ctx, info)); -------------- next part -------------- HTML����������������������������...다운로드