2 * Sherlock Library -- Regular Expressions Test
4 * (c) 2001 Robert Spalek <robert@ucw.cz>
11 #define PREPARE(patt, icase) r = rx_compile(patt, icase); printf("\npattern: %s, icase=%d\n", patt, icase)
12 #define TEST(txt, should) printf(txt ": %d (should %d)\n", rx_match(r, txt), should)
19 PREPARE("a.*b.*c", 0);
21 TEST("ajkhkbbbbbc", 1);
25 PREPARE("a.*b.*c", 1);
27 TEST("ajkhkbBBBBC", 1);
31 PREPARE("(ahoj|nebo)", 1);
35 TEST("(ahoj|nebo)", 0);
38 PREPARE("\\(ahoj\\)", 0);