diff options
Diffstat (limited to 'test/fzytest.c')
-rw-r--r-- | test/fzytest.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fzytest.c b/test/fzytest.c index 0e0bad0..3786cd7 100644 --- a/test/fzytest.c +++ b/test/fzytest.c @@ -268,6 +268,17 @@ void test_choices_without_search() { choices_destroy(&choices); } +/* Regression test for segfault */ +void test_choices_unicode() { + choices_t choices; + choices_init(&choices); + + choices_add(&choices, "Edmund Husserl - Méditations cartésiennes - Introduction a la phénoménologie.pdf"); + choices_search(&choices, "e"); + + choices_destroy(&choices); +} + void summary() { printf("%i tests, %i assertions, %i failures\n", testsrun, assertionsrun, testsfailed); } @@ -298,6 +309,7 @@ int main(int argc, char *argv[]) { runtest(test_choices_1); runtest(test_choices_2); runtest(test_choices_without_search); + runtest(test_choices_unicode); summary(); |