Navigation Menu

Skip to content

Commit

Permalink
test: add a test for table name starts with '_' case
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 19, 2012
1 parent 27af014 commit 3382b56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/test_mrn_sys.cpp
Expand Up @@ -99,9 +99,11 @@ namespace test_mrn_sys
const char *arg1 = "./hoge/fuga";
const char *arg2 = "./foobar/mysql";
const char *arg3 = "./d/b";
const char *arg4 = "./d/_b";
cut_assert_equal_string("fuga", mrn_table_name_gen(arg1, buf));
cut_assert_equal_string("mysql", mrn_table_name_gen(arg2, buf));
cut_assert_equal_string("b", mrn_table_name_gen(arg3, buf));
cut_assert_equal_string("@005fb", mrn_table_name_gen(arg4, buf));
}

void test_mrn_index_table_name_gen()
Expand Down

0 comments on commit 3382b56

Please sign in to comment.