~ancarda/picotest

be6bc349635a0dd2b481187c1c4fdf0f592e75b9 — Mark Dain 5 months ago 2304e12
Drop unnecessary semicolon

I thought this was required by `IT_SHOULD', but it's actually just the
internal tests being a bit odd.

This now runs cleanly with `-Wpedantic'.

Issue: https://todo.sr.ht/~ancarda/picotest/1
1 files changed, 4 insertions(+), 4 deletions(-)

M test/replace.c
M test/replace.c => test/replace.c +4 -4
@@ 8,7 8,7 @@ IT_SHOULD(do_nothing_when_replacing_bytes_in_an_empty_string, {
    new = __str_replace_byte("", 1, 2);
    ASSERT_STR_EQ("", new);
    free(new);
});
})

IT_SHOULD(echo_the_given_string_when_replacing_a_non_present_byte, {
    char* new;


@@ 16,7 16,7 @@ IT_SHOULD(echo_the_given_string_when_replacing_a_non_present_byte, {
    new = __str_replace_byte("abcdef", 'g', 'h');
    ASSERT_STR_EQ("abcdef", new);
    free(new);
});
})

IT_SHOULD(replace_a_single_occurance, {
    char* new;


@@ 24,7 24,7 @@ IT_SHOULD(replace_a_single_occurance, {
    new = __str_replace_byte("120456", '0', '3');
    ASSERT_STR_EQ("123456", new);
    free(new);
});
})

IT_SHOULD(replace_multiple_occurances, {
    char* new;


@@ 32,7 32,7 @@ IT_SHOULD(replace_multiple_occurances, {
    new = __str_replace_byte("111333666", '1', '2');
    ASSERT_STR_EQ("222333666", new);
    free(new);
});
})

void test_str_replace_byte()
{