make "all tests passed" message uniform
This commit is contained in:
parent
e41e696d46
commit
2864ba7771
2
snail.c
2
snail.c
@ -62,7 +62,7 @@ int main(void) {
|
|||||||
all_valid &= validate(result, expected3, sizeof(initial3) / sizeof(int));
|
all_valid &= validate(result, expected3, sizeof(initial3) / sizeof(int));
|
||||||
free(result);
|
free(result);
|
||||||
|
|
||||||
printf(all_valid ? "all tests passed.\n" : "tests failed.\n");
|
printf(all_valid ? "all tests passed\n" : "tests failed\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,5 +47,5 @@ main :: proc() {
|
|||||||
expected = [dynamic]int{1, 2, 3, 6, 9, 12, 15, 14, 13, 10, 7, 4, 5, 8, 11}
|
expected = [dynamic]int{1, 2, 3, 6, 9, 12, 15, 14, 13, 10, 7, 4, 5, 8, 11}
|
||||||
fmt.println(eq(snail(initial)[:], expected[:]))
|
fmt.println(eq(snail(initial)[:], expected[:]))
|
||||||
|
|
||||||
fmt.println("all tests passed.")
|
fmt.println("all tests passed")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user