diff options
Diffstat (limited to '')
| -rw-r--r-- | test/00_basic/basic_tests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/00_basic/basic_tests.c b/test/00_basic/basic_tests.c index b1ff001..0a8f2ac 100644 --- a/test/00_basic/basic_tests.c +++ b/test/00_basic/basic_tests.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #include <stdbool.h> | 1 | #include <stdbool.h> |
| 2 | #include <stdint.h> | 2 | #include <stdint.h> |
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | #include <string.h> | ||
| 4 | 5 | ||
| 5 | #include "../../cube.h" | 6 | #include "../../cube.h" |
| 6 | 7 | ||
| @@ -22,7 +23,7 @@ fprintf(stderr, "check2 %s %s\n", name1, name2); | |||
| 22 | int main() { | 23 | int main() { |
| 23 | cube_t zero, solved; | 24 | cube_t zero, solved; |
| 24 | 25 | ||
| 25 | zero = zerocube(); | 26 | memset(&zero, 0, sizeof(cube_t)); |
| 26 | solved = solvedcube(); | 27 | solved = solvedcube(); |
| 27 | check(solved, "Solved"); | 28 | check(solved, "Solved"); |
| 28 | check(zero, "Zero"); | 29 | check(zero, "Zero"); |
