From 80ec600701aae54350679bbf5e0ce874c915506e Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 29 Oct 2023 10:29:27 +0100 Subject: AVX2 compiles, fails all tests; + some renaming --- test/02_move/move_tests.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 test/02_move/move_tests.c (limited to 'test/02_move/move_tests.c') diff --git a/test/02_move/move_tests.c b/test/02_move/move_tests.c deleted file mode 100644 index 054466b..0000000 --- a/test/02_move/move_tests.c +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -#include - -#include "../../src/cube.h" - -#define STRLENMAX 10000 -#define MOVESMAX 1000 - -int main() { - char str[STRLENMAX]; - int i, n; - move_t moves[MOVESMAX]; - cube_t cube; - - fgets(str, STRLENMAX, stdin); - n = readmoves(str, moves); - - if (n == -1) { - printf("Error reading moves\n"); - return 1; - } - - fgets(str, STRLENMAX, stdin); - cube = readcube(H48, str); - - for (i = 0; i < n; i++) - cube = move(cube, moves[i]); - - if (iserror(cube)) { - printf("Error moving cube\n"); - } else if (!issolvable(cube)) { - printf("Moved cube is not solvable\n"); - } else { - writecube(H48, cube, str); - printf("%s\n", str); - } - - return 0; -} -- cgit v1.3