From cd866d68cf1bf6ea928cc48a4f2b753c0b1baa6f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 11:14:06 +0200 Subject: Updated tests and added fixed =A to B32 output --- test/021_io_B32_write/00_solved.in | 1 - test/021_io_B32_write/00_solved.out | 1 - test/021_io_B32_write/01_F.in | 1 - test/021_io_B32_write/01_F.out | 1 - test/021_io_B32_write/02_scrambled.in | 1 - test/021_io_B32_write/02_scrambled.out | 1 - test/021_io_B32_write/io_B32_read_tests.c | 22 ---------------------- 7 files changed, 28 deletions(-) delete mode 100644 test/021_io_B32_write/00_solved.in delete mode 100644 test/021_io_B32_write/00_solved.out delete mode 100644 test/021_io_B32_write/01_F.in delete mode 100644 test/021_io_B32_write/01_F.out delete mode 100644 test/021_io_B32_write/02_scrambled.in delete mode 100644 test/021_io_B32_write/02_scrambled.out delete mode 100644 test/021_io_B32_write/io_B32_read_tests.c (limited to 'test/021_io_B32_write') diff --git a/test/021_io_B32_write/00_solved.in b/test/021_io_B32_write/00_solved.in deleted file mode 100644 index dff224d..0000000 --- a/test/021_io_B32_write/00_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/021_io_B32_write/00_solved.out b/test/021_io_B32_write/00_solved.out deleted file mode 100644 index e1df94b..0000000 --- a/test/021_io_B32_write/00_solved.out +++ /dev/null @@ -1 +0,0 @@ -ABCDEFGH=ABCDEFGHIJKL diff --git a/test/021_io_B32_write/01_F.in b/test/021_io_B32_write/01_F.in deleted file mode 100644 index e805af8..0000000 --- a/test/021_io_B32_write/01_F.in +++ /dev/null @@ -1 +0,0 @@ -FL1 UB0 DB0 FR1 UR0 UL0 DL0 DR0 UF1 DF1 BL0 BR0 UFL1 UBL0 DFR1 DBR0 DFL2 UBR0 UFR2 DBL0 diff --git a/test/021_io_B32_write/01_F.out b/test/021_io_B32_write/01_F.out deleted file mode 100644 index 1677251..0000000 --- a/test/021_io_B32_write/01_F.out +++ /dev/null @@ -1 +0,0 @@ -MBODSFQH=ZBCYEFGHQTKL diff --git a/test/021_io_B32_write/02_scrambled.in b/test/021_io_B32_write/02_scrambled.in deleted file mode 100644 index 6a05bbc..0000000 --- a/test/021_io_B32_write/02_scrambled.in +++ /dev/null @@ -1 +0,0 @@ -FL0 DB0 UB1 FR0 UR0 DF0 UF0 BR1 UL1 BL1 DL0 DR0 DFR1 UFR1 UBR1 UFL2 DBR2 DFL0 DBL2 UBL0 diff --git a/test/021_io_B32_write/02_scrambled.out b/test/021_io_B32_write/02_scrambled.out deleted file mode 100644 index ed442fe..0000000 --- a/test/021_io_B32_write/02_scrambled.out +++ /dev/null @@ -1 +0,0 @@ -OINUTCXB=JCRIEDAbVaGH diff --git a/test/021_io_B32_write/io_B32_read_tests.c b/test/021_io_B32_write/io_B32_read_tests.c deleted file mode 100644 index 50e07d4..0000000 --- a/test/021_io_B32_write/io_B32_read_tests.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "../test.h" - -void run(void) { - char str[STRLENMAX], *aux; - cube_t cube; - - aux = str; - while (fgets(aux, STRLENMAX, stdin) != NULL) - while (*aux != '\n') - aux++; - - cube = readcube("H48", str); - - if (iserror(cube)) { - printf("Error reading cube\n"); - } else if (!issolvable(cube)) { - printf("Cube is not solvable\n"); - } else { - writecube("B32", cube, NISSY_SIZE_B32, str); - printf("%s\n", str); - } -} -- cgit v1.3