Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add tests for no match case.
  • Loading branch information
kou committed Aug 18, 2010
1 parent 5273401 commit 0d8e866
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/unit/core/test-table-patricia-trie-cursor.c
Expand Up @@ -786,13 +786,35 @@ data_prefix_rk_offset_and_limit(void)
3, 5);
}

static void
data_prefix_rk_no_match(void)
{
ADD_DATA("roman - no match",
NULL,
"kumikomuy",
0, -1);
ADD_DATA("roman - upcase - no match",
NULL,
"K",
0, -1);
ADD_DATA("ひらがな - no match",
NULL,
"くみこむよ",
0, -1);
ADD_DATA("カタカナ - no match",
NULL,
"クミコムヨ",
0, -1);
}

void
data_prefix_rk(void)
{
data_prefix_rk_basic();
data_prefix_rk_xtsu();
data_prefix_rk_xyu();
data_prefix_rk_offset_and_limit();
data_prefix_rk_no_match();
}
#undef ADD_DATA

Expand Down

0 comments on commit 0d8e866

Please sign in to comment.