From 0032089b5c7dedf057c60fcee17cbdd2b0f8bb87 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 Oct 2023 23:51:20 +0200 Subject: Added more complete test for SRC_write; renamed tests for clarity --- test/011_io_SRC/01_solved.in | 1 - test/011_io_SRC/01_solved.out | 4 ---- test/011_io_SRC/io_SRC_tests.c | 28 ---------------------------- 3 files changed, 33 deletions(-) delete mode 100644 test/011_io_SRC/01_solved.in delete mode 100644 test/011_io_SRC/01_solved.out delete mode 100644 test/011_io_SRC/io_SRC_tests.c (limited to 'test/011_io_SRC') diff --git a/test/011_io_SRC/01_solved.in b/test/011_io_SRC/01_solved.in deleted file mode 100644 index dff224d..0000000 --- a/test/011_io_SRC/01_solved.in +++ /dev/null @@ -1 +0,0 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 diff --git a/test/011_io_SRC/01_solved.out b/test/011_io_SRC/01_solved.out deleted file mode 100644 index 3853027..0000000 --- a/test/011_io_SRC/01_solved.out +++ /dev/null @@ -1,4 +0,0 @@ -{ - .c = {0, 1, 2, 3, 4, 5, 6, 7}, - .e = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} -} diff --git a/test/011_io_SRC/io_SRC_tests.c b/test/011_io_SRC/io_SRC_tests.c deleted file mode 100644 index f454b6f..0000000 --- a/test/011_io_SRC/io_SRC_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(H48, str); - - if (iserror(cube)) { - printf("Error reading cube\n"); - } else if (!issolvable(cube)) { - printf("Cube is not solvable\n"); - } else { - writecube(SRC, cube, str); - printf("%s\n", str); - } - - return 0; -} -- cgit v1.3