Solve challenge 6

This commit is contained in:
Dimitri Lozeve 2020-06-10 18:07:26 +02:00
parent 87a1547478
commit cb30d47479
4 changed files with 14 additions and 19 deletions

View file

@ -83,7 +83,9 @@ static MunitResult test_hamming(const MunitParameter params[], void *data) {
(void)params;
(void)data;
assert_int(hamming(14, "this is a test", "wokka wokka!!!"), ==, 37);
assert_int(hamming(14, (const unsigned char *)"this is a test",
(const unsigned char *)"wokka wokka!!!"),
==, 37);
return MUNIT_OK;
}