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/all.in | 0 test/00_basic/all.out | 4 ++++ test/00_basic/basic_tests.c | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 test/00_basic/all.in create mode 100644 test/00_basic/all.out create mode 100644 test/00_basic/basic_tests.c (limited to 'test/00_basic') diff --git a/test/00_basic/all.in b/test/00_basic/all.in new file mode 100644 index 0000000..e69de29 diff --git a/test/00_basic/all.out b/test/00_basic/all.out new file mode 100644 index 0000000..d77f7f4 --- /dev/null +++ b/test/00_basic/all.out @@ -0,0 +1,4 @@ +Solved is consistent +Solved is solved +Zero is NOT consistent +Zero is NOT solved 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