| 2 | #include "urlmatch.h" |
| 3 | |
| 4 | static void check_url_normalizable(const char *url, unsigned int normalizable) |
| 5 | { |
| 6 | char *url_norm = url_normalize(url, NULL); |
| 7 | |
| 8 | cl_assert_equal_i(normalizable, url_norm ? 1 : 0); |
| 9 | free(url_norm); |
| 10 | } |
| 11 | |
| 12 | static void check_normalized_url(const char *url, const char *expect) |
| 13 | { |