aboutsummaryrefslogtreecommitdiff
path: root/test/basic/basic_tests.c
blob: cc2a55c6fee6d3c89d28b1651021ab5e2a6d9a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

#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;
}

Generated with cgit - Back to sebastiano.tronto.net