aboutsummaryrefslogtreecommitdiff
path: root/test/020_io_H48_read_write
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-10 19:26:47 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-10 19:26:47 +0200
commit832ad3dcf3818e57c53304ea9b09a943e785a16b (patch)
treedb78b51e3eee74d293b38337eeb1a02e33c5aed6 /test/020_io_H48_read_write
parent1cecea625ed405c7203d1977e687da36d835fc9a (diff)
downloadnissy-core-832ad3dcf3818e57c53304ea9b09a943e785a16b.tar.gz
nissy-core-832ad3dcf3818e57c53304ea9b09a943e785a16b.zip
Added tests for B32
Diffstat (limited to 'test/020_io_H48_read_write')
-rw-r--r--test/020_io_H48_read_write/00_garbage.in3
-rw-r--r--test/020_io_H48_read_write/00_garbage.out1
-rw-r--r--test/020_io_H48_read_write/01_solved_oneline.in1
-rw-r--r--test/020_io_H48_read_write/01_solved_oneline.out1
-rw-r--r--test/020_io_H48_read_write/02_solved_oneline_whitespace.in1
-rw-r--r--test/020_io_H48_read_write/02_solved_oneline_whitespace.out1
-rw-r--r--test/020_io_H48_read_write/03_solved_multiline.in9
-rw-r--r--test/020_io_H48_read_write/03_solved_multiline.out1
-rw-r--r--test/020_io_H48_read_write/04_unsolvable_ep.in1
-rw-r--r--test/020_io_H48_read_write/04_unsolvable_ep.out1
-rw-r--r--test/020_io_H48_read_write/05_unsolvable_eo.in1
-rw-r--r--test/020_io_H48_read_write/05_unsolvable_eo.out1
-rw-r--r--test/020_io_H48_read_write/06_unsolvable_cp.in1
-rw-r--r--test/020_io_H48_read_write/06_unsolvable_cp.out1
-rw-r--r--test/020_io_H48_read_write/07_unsolvable_co.in1
-rw-r--r--test/020_io_H48_read_write/07_unsolvable_co.out1
-rw-r--r--test/020_io_H48_read_write/08_unsolved.in6
-rw-r--r--test/020_io_H48_read_write/08_unsolved.out1
-rw-r--r--test/020_io_H48_read_write/io_H48_tests.c24
19 files changed, 0 insertions, 57 deletions
diff --git a/test/020_io_H48_read_write/00_garbage.in b/test/020_io_H48_read_write/00_garbage.in
deleted file mode 100644
index 9ac203a..0000000
--- a/test/020_io_H48_read_write/00_garbage.in
+++ /dev/null
@@ -1,3 +0,0 @@
1FUF0 UBBBR2 k4
2hello
3garbage
diff --git a/test/020_io_H48_read_write/00_garbage.out b/test/020_io_H48_read_write/00_garbage.out
deleted file mode 100644
index 5b9114e..0000000
--- a/test/020_io_H48_read_write/00_garbage.out
+++ /dev/null
@@ -1 +0,0 @@
1Error reading cube
diff --git a/test/020_io_H48_read_write/01_solved_oneline.in b/test/020_io_H48_read_write/01_solved_oneline.in
deleted file mode 100644
index dff224d..0000000
--- a/test/020_io_H48_read_write/01_solved_oneline.in
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/01_solved_oneline.out b/test/020_io_H48_read_write/01_solved_oneline.out
deleted file mode 100644
index dff224d..0000000
--- a/test/020_io_H48_read_write/01_solved_oneline.out
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/02_solved_oneline_whitespace.in b/test/020_io_H48_read_write/02_solved_oneline_whitespace.in
deleted file mode 100644
index 5d10368..0000000
--- a/test/020_io_H48_read_write/02_solved_oneline_whitespace.in
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/02_solved_oneline_whitespace.out b/test/020_io_H48_read_write/02_solved_oneline_whitespace.out
deleted file mode 100644
index dff224d..0000000
--- a/test/020_io_H48_read_write/02_solved_oneline_whitespace.out
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/03_solved_multiline.in b/test/020_io_H48_read_write/03_solved_multiline.in
deleted file mode 100644
index 9f9652b..0000000
--- a/test/020_io_H48_read_write/03_solved_multiline.in
+++ /dev/null
@@ -1,9 +0,0 @@
1UF0 UB0
2DB0 DF0 UR0 UL0 DL0
3DR0 FR0 FL0 BL0 BR0 UFR0
4
5UBL0 DFL0 DBR0
6
7
8UFL0 UBR0 DFR0
9 DBL0
diff --git a/test/020_io_H48_read_write/03_solved_multiline.out b/test/020_io_H48_read_write/03_solved_multiline.out
deleted file mode 100644
index dff224d..0000000
--- a/test/020_io_H48_read_write/03_solved_multiline.out
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/04_unsolvable_ep.in b/test/020_io_H48_read_write/04_unsolvable_ep.in
deleted file mode 100644
index 8483962..0000000
--- a/test/020_io_H48_read_write/04_unsolvable_ep.in
+++ /dev/null
@@ -1 +0,0 @@
1UB0 UF0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/04_unsolvable_ep.out b/test/020_io_H48_read_write/04_unsolvable_ep.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/020_io_H48_read_write/04_unsolvable_ep.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/020_io_H48_read_write/05_unsolvable_eo.in b/test/020_io_H48_read_write/05_unsolvable_eo.in
deleted file mode 100644
index a92089d..0000000
--- a/test/020_io_H48_read_write/05_unsolvable_eo.in
+++ /dev/null
@@ -1 +0,0 @@
1UF1 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/05_unsolvable_eo.out b/test/020_io_H48_read_write/05_unsolvable_eo.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/020_io_H48_read_write/05_unsolvable_eo.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/020_io_H48_read_write/06_unsolvable_cp.in b/test/020_io_H48_read_write/06_unsolvable_cp.in
deleted file mode 100644
index 2085dd5..0000000
--- a/test/020_io_H48_read_write/06_unsolvable_cp.in
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UBL0 UFR0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/06_unsolvable_cp.out b/test/020_io_H48_read_write/06_unsolvable_cp.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/020_io_H48_read_write/06_unsolvable_cp.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/020_io_H48_read_write/07_unsolvable_co.in b/test/020_io_H48_read_write/07_unsolvable_co.in
deleted file mode 100644
index abd74e2..0000000
--- a/test/020_io_H48_read_write/07_unsolvable_co.in
+++ /dev/null
@@ -1 +0,0 @@
1UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR1 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/020_io_H48_read_write/07_unsolvable_co.out b/test/020_io_H48_read_write/07_unsolvable_co.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/020_io_H48_read_write/07_unsolvable_co.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/020_io_H48_read_write/08_unsolved.in b/test/020_io_H48_read_write/08_unsolved.in
deleted file mode 100644
index c992ce7..0000000
--- a/test/020_io_H48_read_write/08_unsolved.in
+++ /dev/null
@@ -1,6 +0,0 @@
1UL1 DR0 UB0 DL1
2UR0 FR1 DB0 BR0
3UF1 DF0 BL0 FL0
4
5UBL0 DLF1 DBR2 UFR1
6DFR1 UBR1 UFL0 DBL0
diff --git a/test/020_io_H48_read_write/08_unsolved.out b/test/020_io_H48_read_write/08_unsolved.out
deleted file mode 100644
index 8c132cf..0000000
--- a/test/020_io_H48_read_write/08_unsolved.out
+++ /dev/null
@@ -1 +0,0 @@
1UL1 DR0 UB0 DL1 UR0 FR1 DB0 BR0 UF1 DF0 BL0 FL0 UBL0 DFL1 DBR2 UFR1 DFR1 UBR1 UFL0 DBL0
diff --git a/test/020_io_H48_read_write/io_H48_tests.c b/test/020_io_H48_read_write/io_H48_tests.c
deleted file mode 100644
index 705356c..0000000
--- a/test/020_io_H48_read_write/io_H48_tests.c
+++ /dev/null
@@ -1,24 +0,0 @@
1#include "../test.h"
2
3int main(void) {
4 char str[STRLENMAX], *aux;
5 cube_t cube;
6
7 aux = str;
8 while (fgets(aux, STRLENMAX, stdin) != NULL)
9 while (*aux != '\n')
10 aux++;
11
12 cube = readcube("H48", str);
13
14 if (iserror(cube)) {
15 printf("Error reading cube\n");
16 } else if (!issolvable(cube)) {
17 printf("Cube is not solvable\n");
18 } else {
19 writecube("H48", cube, str);
20 printf("%s\n", str);
21 }
22
23 return 0;
24}

Generated with cgit - Back to sebastiano.tronto.net