summaryrefslogtreecommitdiff
path: root/test/test_properties.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2017-04-04 22:52:53 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2017-04-04 23:40:21 -0700
commit2d17422a93d039b2745b117b6373abb6ee4c951d (patch)
tree26335a4392d83116abf635a37158345efc6f9e21 /test/test_properties.c
parenta47b34dc0797af82947e4608f5b8690aff62ec60 (diff)
Move test suites into separate files
Diffstat (limited to 'test/test_properties.c')
-rw-r--r--test/test_properties.c7
1 files changed, 4 insertions, 3 deletions
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);
}