diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-29 01:06:09 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-29 01:06:09 +0200 |
| commit | f987f5af492f2ac9d5aeebd351bcb49175556af2 (patch) | |
| tree | e4a6a242996f83c2110dcf46dc2b7a3f271f2b44 /test/basic/basic_tests.c | |
| download | nissy-core-f987f5af492f2ac9d5aeebd351bcb49175556af2.tar.gz nissy-core-f987f5af492f2ac9d5aeebd351bcb49175556af2.zip | |
Initial commit
Diffstat (limited to 'test/basic/basic_tests.c')
| -rw-r--r-- | test/basic/basic_tests.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/basic/basic_tests.c b/test/basic/basic_tests.c new file mode 100644 index 0000000..cc2a55c --- /dev/null +++ b/test/basic/basic_tests.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include <stdbool.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | #include "../../src/cube.h" | ||
| 6 | |||
| 7 | int main() { | ||
| 8 | cube_t z, s; | ||
| 9 | |||
| 10 | s = solvedcube; | ||
| 11 | printf("Solved %s consistent\n", isconsistent(s) ? "is" : "is NOT"); | ||
| 12 | printf("Solved %s solved\n", issolved(s) ? "is" : "is NOT"); | ||
| 13 | |||
| 14 | z = (cube_t){0}; | ||
| 15 | printf("Zero %s consistent\n", isconsistent(z) ? "is" : "is NOT"); | ||
| 16 | printf("Zero %s solved\n", issolved(z) ? "is" : "is NOT"); | ||
| 17 | |||
| 18 | return 0; | ||
| 19 | } | ||
