1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2008 Index Data
3 * See the file LICENSE for details.
9 #include <yaz/yaz-iconv.h>
12 int main (int argc, char **argv)
14 YAZ_CHECK_INIT(argc, argv);
16 YAZ_CHECK(yaz_matchstr("x", "x") == 0);
17 YAZ_CHECK(yaz_matchstr("x", "X") == 0);
18 YAZ_CHECK(yaz_matchstr("a", "b") > 0);
19 YAZ_CHECK(yaz_matchstr("b", "a") > 0);
20 YAZ_CHECK(yaz_matchstr("aa","a") > 0);
21 YAZ_CHECK(yaz_matchstr("a-", "a") > 0);
22 YAZ_CHECK(yaz_matchstr("A-b", "ab") == 0);
23 YAZ_CHECK(yaz_matchstr("A--b", "ab") > 0);
24 YAZ_CHECK(yaz_matchstr("A--b", "a-b") > 0);
25 YAZ_CHECK(yaz_matchstr("A--b", "a--b") == 0);
26 YAZ_CHECK(yaz_matchstr("a123", "a?") == 0);
27 YAZ_CHECK(yaz_matchstr("a123", "a1.3") == 0);
28 YAZ_CHECK(yaz_matchstr("a123", "..?") == 0);
29 YAZ_CHECK(yaz_matchstr("a123", "a1.") > 0);
30 YAZ_CHECK(yaz_matchstr("a123", "a...") == 0);
38 * indent-tabs-mode: nil
40 * vim: shiftwidth=4 tabstop=8 expandtab