diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-08 10:05:21 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-08 10:05:21 +0100 |
| commit | 61ae2bd88751a291f97e6f0ee36563e898cacac8 (patch) | |
| tree | 5773b7a475ba878871daa28d75c1f39475e582b6 /test | |
| parent | 7b48583d629d33971e9f1d5e7aa4ca7f11d8a032 (diff) | |
| download | nissy-core-61ae2bd88751a291f97e6f0ee36563e898cacac8.tar.gz nissy-core-61ae2bd88751a291f97e6f0ee36563e898cacac8.zip | |
Small refactoring
Diffstat (limited to 'test')
| -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"); |
