Changeset 7b05842 for tests/check_set.c
- Timestamp:
- 2014-04-25T08:03:59Z (11 years ago)
- Branches:
- master
- Children:
- b95b0c8
- Parents:
- b4008a5 (diff), 6a6d7d8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_set.c
rb4008a5 r7b05842 26 26 27 27 START_TEST(test_set_find_unknown) 28 set_t *s = NULL , *t;28 set_t *s = NULL; 29 29 fail_unless (set_find(&s, "foo") == NULL); 30 30 END_TEST … … 69 69 START_TEST(test_set_get_str_value) 70 70 void *data = "data"; 71 set_t *s = NULL , *t;72 t =set_add(&s, "name", "default", NULL, data);71 set_t *s = NULL; 72 set_add(&s, "name", "default", NULL, data); 73 73 set_setstr(&s, "name", "foo"); 74 74 fail_unless(strcmp(set_getstr(&s, "name"), "foo") == 0); … … 82 82 START_TEST(test_setint) 83 83 void *data = "data"; 84 set_t *s = NULL , *t;85 t =set_add(&s, "name", "10", NULL, data);84 set_t *s = NULL; 85 set_add(&s, "name", "10", NULL, data); 86 86 set_setint(&s, "name", 3); 87 87 fail_unless(set_getint(&s, "name") == 3); … … 90 90 START_TEST(test_setstr) 91 91 void *data = "data"; 92 set_t *s = NULL , *t;93 t =set_add(&s, "name", "foo", NULL, data);92 set_t *s = NULL; 93 set_add(&s, "name", "foo", NULL, data); 94 94 set_setstr(&s, "name", "bloe"); 95 95 fail_unless(strcmp(set_getstr(&s, "name"), "bloe") == 0);
Note: See TracChangeset
for help on using the changeset viewer.