From 2edc8c01fba711f4410279b59c784a43cf2dde41 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 8 Oct 2023 14:04:11 +0200 Subject: Added write to SRC format --- test/01_io/io_tests.c | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/01_io/io_tests.c (limited to 'test/01_io/io_tests.c') diff --git a/test/01_io/io_tests.c b/test/01_io/io_tests.c deleted file mode 100644 index 913ec1d..0000000 --- a/test/01_io/io_tests.c +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include -#include - -#include "../../src/cube.h" - -#define STRLENMAX 10000 - -int main() { - char *c, str[STRLENMAX]; - cube_t cube; - - for (c = str; (*c = getchar()) != EOF; c++) ; - *c = '\0'; - - cube = readcube(str); - - if (iserror(cube)) { - printf("Error reading cube\n"); - } else if (!issolvable(cube)) { - printf("Cube is not solvable\n"); - } else { - writecube(cube, str); - printf("%s\n", str); - } - - return 0; -} -- cgit v1.3