aboutsummaryrefslogtreecommitdiff
path: root/test/082_allowednext_h48
diff options
context:
space:
mode:
Diffstat (limited to 'test/082_allowednext_h48')
-rw-r--r--test/082_allowednext_h48/00_empty_U.in3
-rw-r--r--test/082_allowednext_h48/00_empty_U.out1
-rw-r--r--test/082_allowednext_h48/01_F.in4
-rw-r--r--test/082_allowednext_h48/01_F.out1
-rw-r--r--test/082_allowednext_h48/02_U2.in3
-rw-r--r--test/082_allowednext_h48/02_U2.out1
-rw-r--r--test/082_allowednext_h48/03_R_L.in5
-rw-r--r--test/082_allowednext_h48/03_R_L.out1
-rw-r--r--test/082_allowednext_h48/04_D.in3
-rw-r--r--test/082_allowednext_h48/04_D.out1
-rw-r--r--test/082_allowednext_h48/05_U_F_B2.in5
-rw-r--r--test/082_allowednext_h48/05_U_F_B2.out1
-rw-r--r--test/082_allowednext_h48/06_empty_bound.in2
-rw-r--r--test/082_allowednext_h48/06_empty_bound.out1
-rw-r--r--test/082_allowednext_h48/07_F_bound.in3
-rw-r--r--test/082_allowednext_h48/07_F_bound.out1
-rw-r--r--test/082_allowednext_h48/08_U_D_bound_inverse.in4
-rw-r--r--test/082_allowednext_h48/08_U_D_bound_inverse.out1
-rw-r--r--test/082_allowednext_h48/09_R_false_bound.in3
-rw-r--r--test/082_allowednext_h48/09_R_false_bound.out1
-rw-r--r--test/082_allowednext_h48/allowednext_h48_tests.c38
21 files changed, 0 insertions, 83 deletions
diff --git a/test/082_allowednext_h48/00_empty_U.in b/test/082_allowednext_h48/00_empty_U.in
deleted file mode 100644
index 28271a6..0000000
--- a/test/082_allowednext_h48/00_empty_U.in
+++ /dev/null
@@ -1,3 +0,0 @@
10
20
3
diff --git a/test/082_allowednext_h48/00_empty_U.out b/test/082_allowednext_h48/00_empty_U.out
deleted file mode 100644
index 8607955..0000000
--- a/test/082_allowednext_h48/00_empty_U.out
+++ /dev/null
@@ -1 +0,0 @@
10x3FFFF
diff --git a/test/082_allowednext_h48/01_F.in b/test/082_allowednext_h48/01_F.in
deleted file mode 100644
index e7ae375..0000000
--- a/test/082_allowednext_h48/01_F.in
+++ /dev/null
@@ -1,4 +0,0 @@
10
21
3F
4
diff --git a/test/082_allowednext_h48/01_F.out b/test/082_allowednext_h48/01_F.out
deleted file mode 100644
index 5d6f843..0000000
--- a/test/082_allowednext_h48/01_F.out
+++ /dev/null
@@ -1 +0,0 @@
10x38FFF
diff --git a/test/082_allowednext_h48/02_U2.in b/test/082_allowednext_h48/02_U2.in
deleted file mode 100644
index 2c5ee5f..0000000
--- a/test/082_allowednext_h48/02_U2.in
+++ /dev/null
@@ -1,3 +0,0 @@
10
21
3U
diff --git a/test/082_allowednext_h48/02_U2.out b/test/082_allowednext_h48/02_U2.out
deleted file mode 100644
index a9a5adb..0000000
--- a/test/082_allowednext_h48/02_U2.out
+++ /dev/null
@@ -1 +0,0 @@
10x3FFF8
diff --git a/test/082_allowednext_h48/03_R_L.in b/test/082_allowednext_h48/03_R_L.in
deleted file mode 100644
index b6c0625..0000000
--- a/test/082_allowednext_h48/03_R_L.in
+++ /dev/null
@@ -1,5 +0,0 @@
10
22
3R
4L'
5
diff --git a/test/082_allowednext_h48/03_R_L.out b/test/082_allowednext_h48/03_R_L.out
deleted file mode 100644
index a4aa4b2..0000000
--- a/test/082_allowednext_h48/03_R_L.out
+++ /dev/null
@@ -1 +0,0 @@
10x3F03F
diff --git a/test/082_allowednext_h48/04_D.in b/test/082_allowednext_h48/04_D.in
deleted file mode 100644
index 83da556..0000000
--- a/test/082_allowednext_h48/04_D.in
+++ /dev/null
@@ -1,3 +0,0 @@
10
21
3D
diff --git a/test/082_allowednext_h48/04_D.out b/test/082_allowednext_h48/04_D.out
deleted file mode 100644
index fe91843..0000000
--- a/test/082_allowednext_h48/04_D.out
+++ /dev/null
@@ -1 +0,0 @@
10x3FFC0
diff --git a/test/082_allowednext_h48/05_U_F_B2.in b/test/082_allowednext_h48/05_U_F_B2.in
deleted file mode 100644
index 67e090f..0000000
--- a/test/082_allowednext_h48/05_U_F_B2.in
+++ /dev/null
@@ -1,5 +0,0 @@
10
22
3U
4F
5
diff --git a/test/082_allowednext_h48/05_U_F_B2.out b/test/082_allowednext_h48/05_U_F_B2.out
deleted file mode 100644
index 5d6f843..0000000
--- a/test/082_allowednext_h48/05_U_F_B2.out
+++ /dev/null
@@ -1 +0,0 @@
10x38FFF
diff --git a/test/082_allowednext_h48/06_empty_bound.in b/test/082_allowednext_h48/06_empty_bound.in
deleted file mode 100644
index 389e262..0000000
--- a/test/082_allowednext_h48/06_empty_bound.in
+++ /dev/null
@@ -1,2 +0,0 @@
12
20
diff --git a/test/082_allowednext_h48/06_empty_bound.out b/test/082_allowednext_h48/06_empty_bound.out
deleted file mode 100644
index eb601fc..0000000
--- a/test/082_allowednext_h48/06_empty_bound.out
+++ /dev/null
@@ -1 +0,0 @@
10x2DB6D
diff --git a/test/082_allowednext_h48/07_F_bound.in b/test/082_allowednext_h48/07_F_bound.in
deleted file mode 100644
index b3ae33d..0000000
--- a/test/082_allowednext_h48/07_F_bound.in
+++ /dev/null
@@ -1,3 +0,0 @@
12
21
3F
diff --git a/test/082_allowednext_h48/07_F_bound.out b/test/082_allowednext_h48/07_F_bound.out
deleted file mode 100644
index 0dc8997..0000000
--- a/test/082_allowednext_h48/07_F_bound.out
+++ /dev/null
@@ -1 +0,0 @@
10x28B6D
diff --git a/test/082_allowednext_h48/08_U_D_bound_inverse.in b/test/082_allowednext_h48/08_U_D_bound_inverse.in
deleted file mode 100644
index 707f7e0..0000000
--- a/test/082_allowednext_h48/08_U_D_bound_inverse.in
+++ /dev/null
@@ -1,4 +0,0 @@
13
22
3U
4D2 \ No newline at end of file
diff --git a/test/082_allowednext_h48/08_U_D_bound_inverse.out b/test/082_allowednext_h48/08_U_D_bound_inverse.out
deleted file mode 100644
index 6f47cf0..0000000
--- a/test/082_allowednext_h48/08_U_D_bound_inverse.out
+++ /dev/null
@@ -1 +0,0 @@
10x2DB40
diff --git a/test/082_allowednext_h48/09_R_false_bound.in b/test/082_allowednext_h48/09_R_false_bound.in
deleted file mode 100644
index 0b1d441..0000000
--- a/test/082_allowednext_h48/09_R_false_bound.in
+++ /dev/null
@@ -1,3 +0,0 @@
11
21
3R \ No newline at end of file
diff --git a/test/082_allowednext_h48/09_R_false_bound.out b/test/082_allowednext_h48/09_R_false_bound.out
deleted file mode 100644
index 121bfeb..0000000
--- a/test/082_allowednext_h48/09_R_false_bound.out
+++ /dev/null
@@ -1 +0,0 @@
10x3FE3F
diff --git a/test/082_allowednext_h48/allowednext_h48_tests.c b/test/082_allowednext_h48/allowednext_h48_tests.c
deleted file mode 100644
index 4cee695..0000000
--- a/test/082_allowednext_h48/allowednext_h48_tests.c
+++ /dev/null
@@ -1,38 +0,0 @@
1#include "../test.h"
2
3uint32_t allowednextmoveH48(uint8_t *, uint8_t, uint32_t);
4
5static char *moves[] = {
6 "U", "U2", "U'",
7 "D", "D2", "D'",
8 "R", "R2", "R'",
9 "L", "L2", "L'",
10 "F", "F2", "F'",
11 "B", "B2", "B'",
12};
13
14void run(void) {
15 char movestr[STRLENMAX];
16 uint8_t m[100];
17 int n, i, j, bound;
18
19 fgets(movestr, STRLENMAX, stdin);
20 bound = atoi(movestr);
21
22 fgets(movestr, STRLENMAX, stdin);
23 n = atoi(movestr);
24
25 for (i = 0; i < n; i++) {
26 fgets(movestr, STRLENMAX, stdin);
27 movestr[strcspn(movestr, "\n")] = 0;
28 for (j = 0; j < 18; j++)
29 if (!strcmp(movestr, moves[j]))
30 m[i] = j;
31 }
32
33 fprintf(stderr, "Last two: %s, %s\n",
34 n > 1 ? moves[m[n-2]] : "-",
35 n > 0 ? moves[m[n-1]] : "-");
36 uint32_t allowed = allowednextmoveH48(m, n, bound);
37 printf("0x%05X\n", allowed);
38}

Generated with cgit - Back to sebastiano.tronto.net