From c5dfc897160bc9bbc6a91c77b5d58d421fd1cfe1 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 19 Jun 2023 15:06:11 +0200 Subject: Renamed test folders to keep order --- test/00_basic/basic_tests.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/00_basic/basic_tests.c (limited to 'test/00_basic/basic_tests.c') diff --git a/test/00_basic/basic_tests.c b/test/00_basic/basic_tests.c new file mode 100644 index 0000000..cc2a55c --- /dev/null +++ b/test/00_basic/basic_tests.c @@ -0,0 +1,19 @@ +#include +#include +#include + +#include "../../src/cube.h" + +int main() { + cube_t z, s; + + s = solvedcube; + printf("Solved %s consistent\n", isconsistent(s) ? "is" : "is NOT"); + printf("Solved %s solved\n", issolved(s) ? "is" : "is NOT"); + + z = (cube_t){0}; + printf("Zero %s consistent\n", isconsistent(z) ? "is" : "is NOT"); + printf("Zero %s solved\n", issolved(z) ? "is" : "is NOT"); + + return 0; +} -- cgit v1.3