aboutsummaryrefslogtreecommitdiff
path: root/test/01_io
diff options
context:
space:
mode:
Diffstat (limited to 'test/01_io')
-rw-r--r--test/01_io/00_garbage.in3
-rw-r--r--test/01_io/00_garbage.out1
-rw-r--r--test/01_io/01_solved_oneline.in1
-rw-r--r--test/01_io/01_solved_oneline.out1
-rw-r--r--test/01_io/02_solved_oneline_whitespace.in1
-rw-r--r--test/01_io/02_solved_oneline_whitespace.out1
-rw-r--r--test/01_io/03_solved_multiline.in9
-rw-r--r--test/01_io/03_solved_multiline.out1
-rw-r--r--test/01_io/04_unsolvable_ep.in1
-rw-r--r--test/01_io/04_unsolvable_ep.out1
-rw-r--r--test/01_io/05_unsolvable_eo.in1
-rw-r--r--test/01_io/05_unsolvable_eo.out1
-rw-r--r--test/01_io/06_unsolvable_cp.in1
-rw-r--r--test/01_io/06_unsolvable_cp.out1
-rw-r--r--test/01_io/07_unsolvable_co.in1
-rw-r--r--test/01_io/07_unsolvable_co.out1
-rw-r--r--test/01_io/08_unsolved.in6
-rw-r--r--test/01_io/08_unsolved.out1
-rw-r--r--test/01_io/io_tests.c28
19 files changed, 0 insertions, 61 deletions
diff --git a/test/01_io/00_garbage.in b/test/01_io/00_garbage.in
deleted file mode 100644
index 9ac203a..0000000
--- a/test/01_io/00_garbage.in
+++ /dev/null
@@ -1,3 +0,0 @@
1FUF0 UBBBR2 k4
2hello
3garbage
diff --git a/test/01_io/00_garbage.out b/test/01_io/00_garbage.out
deleted file mode 100644
index 5b9114e..0000000
--- a/test/01_io/00_garbage.out
+++ /dev/null
@@ -1 +0,0 @@
1Error reading cube
diff --git a/test/01_io/01_solved_oneline.in b/test/01_io/01_solved_oneline.in
deleted file mode 100644
index dff224d..0000000
--- a/test/01_io/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/01_io/01_solved_oneline.out b/test/01_io/01_solved_oneline.out
deleted file mode 100644
index dff224d..0000000
--- a/test/01_io/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/01_io/02_solved_oneline_whitespace.in b/test/01_io/02_solved_oneline_whitespace.in
deleted file mode 100644
index 5d10368..0000000
--- a/test/01_io/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/01_io/02_solved_oneline_whitespace.out b/test/01_io/02_solved_oneline_whitespace.out
deleted file mode 100644
index dff224d..0000000
--- a/test/01_io/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/01_io/03_solved_multiline.in b/test/01_io/03_solved_multiline.in
deleted file mode 100644
index 9f9652b..0000000
--- a/test/01_io/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/01_io/03_solved_multiline.out b/test/01_io/03_solved_multiline.out
deleted file mode 100644
index dff224d..0000000
--- a/test/01_io/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/01_io/04_unsolvable_ep.in b/test/01_io/04_unsolvable_ep.in
deleted file mode 100644
index 8483962..0000000
--- a/test/01_io/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/01_io/04_unsolvable_ep.out b/test/01_io/04_unsolvable_ep.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/01_io/04_unsolvable_ep.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/01_io/05_unsolvable_eo.in b/test/01_io/05_unsolvable_eo.in
deleted file mode 100644
index a92089d..0000000
--- a/test/01_io/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/01_io/05_unsolvable_eo.out b/test/01_io/05_unsolvable_eo.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/01_io/05_unsolvable_eo.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/01_io/06_unsolvable_cp.in b/test/01_io/06_unsolvable_cp.in
deleted file mode 100644
index 2085dd5..0000000
--- a/test/01_io/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/01_io/06_unsolvable_cp.out b/test/01_io/06_unsolvable_cp.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/01_io/06_unsolvable_cp.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/01_io/07_unsolvable_co.in b/test/01_io/07_unsolvable_co.in
deleted file mode 100644
index abd74e2..0000000
--- a/test/01_io/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/01_io/07_unsolvable_co.out b/test/01_io/07_unsolvable_co.out
deleted file mode 100644
index e35c6e4..0000000
--- a/test/01_io/07_unsolvable_co.out
+++ /dev/null
@@ -1 +0,0 @@
1Cube is not solvable
diff --git a/test/01_io/08_unsolved.in b/test/01_io/08_unsolved.in
deleted file mode 100644
index c992ce7..0000000
--- a/test/01_io/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/01_io/08_unsolved.out b/test/01_io/08_unsolved.out
deleted file mode 100644
index 8c132cf..0000000
--- a/test/01_io/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/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 @@
1#include <stdbool.h>
2#include <stdint.h>
3#include <stdio.h>
4
5#include "../../src/cube.h"
6
7#define STRLENMAX 10000
8
9int main() {
10 char *c, str[STRLENMAX];
11 cube_t cube;
12
13 for (c = str; (*c = getchar()) != EOF; c++) ;
14 *c = '\0';
15
16 cube = readcube(str);
17
18 if (iserror(cube)) {
19 printf("Error reading cube\n");
20 } else if (!issolvable(cube)) {
21 printf("Cube is not solvable\n");
22 } else {
23 writecube(cube, str);
24 printf("%s\n", str);
25 }
26
27 return 0;
28}

Generated with cgit - Back to sebastiano.tronto.net