Fixed bad bugs
This commit is contained in:
@@ -18,13 +18,6 @@ void test_regex_basic(void) {
|
||||
re4 = mpc_re("ab|c(abdd)?");
|
||||
re5 = mpc_re("abc(ab|dd)+g$");
|
||||
|
||||
mpc_print(re0);
|
||||
mpc_print(re1);
|
||||
mpc_print(re2);
|
||||
mpc_print(re3);
|
||||
mpc_print(re4);
|
||||
mpc_print(re5);
|
||||
|
||||
PT_ASSERT(mpc_match(re0, "abc", "abc", string_eq, free, string_print));
|
||||
PT_ASSERT(mpc_match(re0, "bcd", "bcd", string_eq, free, string_print));
|
||||
PT_ASSERT(mpc_unmatch(re0, "bc", "bc", string_eq, free, string_print));
|
||||
@@ -65,4 +58,4 @@ void test_regex_range(void) {
|
||||
void suite_regex(void) {
|
||||
pt_add_test(test_regex_basic, "Test Regex Basic", "Suite Regex");
|
||||
pt_add_test(test_regex_range, "Test Regex Range", "Suite Regex");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user