diff options
Diffstat (limited to 'tests/string.c')
-rw-r--r-- | tests/string.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/string.c b/tests/string.c index 923d086..7740b4e 100644 --- a/tests/string.c +++ b/tests/string.c @@ -14,7 +14,7 @@ test_string_new_with(void) { { testing("length value isn't checked"); - const char *const string = "abc"; + const char string[] = "abc"; if (string_new_with(string, 123U, &s)) { logerr("string_new_with()"); goto out; @@ -94,7 +94,7 @@ test_cstr(void) { test_start("cstr()"); - const char *const string = "some string"; + const char string[] = "some string"; const size_t length = strlen(string); if (string_new(string, &s)) { logerr("string_new()"); @@ -226,17 +226,17 @@ test_string_equals(void) { const struct String *const s1 = &(struct String) { .length = 1U, - .bytes = (const uint8_t *)"", + .bytes = (const u8 *)"", }; const struct String *const s2 = &(struct String) { .length = 1U, - .bytes = (const uint8_t *)"", + .bytes = (const u8 *)"", }; const struct String *const s3 = &(struct String) { .length = 2U, - .bytes = (const uint8_t *)" ", + .bytes = (const u8 *)" ", }; { @@ -325,7 +325,7 @@ test_string_append(void) { assert(string_equals(s, &(struct String) { .length = 6U, - .bytes = (const uint8_t *)"abcabc", + .bytes = (const u8 *)"abcabc", })); string_free(&s); |