From 2d17422a93d039b2745b117b6373abb6ee4c951d Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Tue, 4 Apr 2017 22:52:53 -0700 Subject: Move test suites into separate files --- test/test_properties.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/test_properties.c') diff --git a/test/test_properties.c b/test/test_properties.c index 1fcdf80..7a9ca5e 100644 --- a/test/test_properties.c +++ b/test/test_properties.c @@ -53,13 +53,14 @@ static void string_print_cb(FILE *f, void *instance, void *env) { } static uint64_t string_hash_cb(void *instance, void *env) { + (void)env; char *str = (char *)instance; int size = strlen(str); - (void)env; - return theft_hash_onepass(str, size); + return theft_hash_onepass((uint8_t *)str, size); } static void *string_shrink_cb(void *instance, uint32_t tactic, void *env) { + (void)env; char *str = (char *)instance; int n = strlen(str); @@ -157,7 +158,7 @@ TEST positions_should_match_characters_in_string() { PASS(); } -SUITE(properties) { +SUITE(properties_suite) { RUN_TEST(should_return_results_if_there_is_a_match); RUN_TEST(positions_should_match_characters_in_string); } -- cgit v1.2.3