aboutsummaryrefslogtreecommitdiff
path: root/test/072_coord_co
diff options
context:
space:
mode:
Diffstat (limited to 'test/072_coord_co')
-rw-r--r--test/072_coord_co/00_solved.in1
-rw-r--r--test/072_coord_co/00_solved.out1
-rw-r--r--test/072_coord_co/01_U.in1
-rw-r--r--test/072_coord_co/01_U.out1
-rw-r--r--test/072_coord_co/02_U2.in1
-rw-r--r--test/072_coord_co/02_U2.out1
-rw-r--r--test/072_coord_co/03_U3.in1
-rw-r--r--test/072_coord_co/03_U3.out1
-rw-r--r--test/072_coord_co/04_D.in1
-rw-r--r--test/072_coord_co/04_D.out1
-rw-r--r--test/072_coord_co/07_R.in1
-rw-r--r--test/072_coord_co/07_R.out1
-rw-r--r--test/072_coord_co/08_R2.in1
-rw-r--r--test/072_coord_co/08_R2.out1
-rw-r--r--test/072_coord_co/10_L.in1
-rw-r--r--test/072_coord_co/10_L.out1
-rw-r--r--test/072_coord_co/13_F.in1
-rw-r--r--test/072_coord_co/13_F.out1
-rw-r--r--test/072_coord_co/14_F2.in1
-rw-r--r--test/072_coord_co/14_F2.out1
-rw-r--r--test/072_coord_co/16_B.in1
-rw-r--r--test/072_coord_co/16_B.out1
-rw-r--r--test/072_coord_co/17_B2.in1
-rw-r--r--test/072_coord_co/17_B2.out1
-rw-r--r--test/072_coord_co/20_scrambled.in3
-rw-r--r--test/072_coord_co/20_scrambled.out1
-rw-r--r--test/072_coord_co/coord_co_tests.c21
27 files changed, 49 insertions, 0 deletions
diff --git a/test/072_coord_co/00_solved.in b/test/072_coord_co/00_solved.in
new file mode 100644
index 0000000..dff224d
--- /dev/null
+++ b/test/072_coord_co/00_solved.in
@@ -0,0 +1 @@
UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0
diff --git a/test/072_coord_co/00_solved.out b/test/072_coord_co/00_solved.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/00_solved.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/01_U.in b/test/072_coord_co/01_U.in
new file mode 100644
index 0000000..b5b36ad
--- /dev/null
+++ b/test/072_coord_co/01_U.in
@@ -0,0 +1 @@
UR0 UL0 DB0 DF0 UB0 UF0 DL0 DR0 FR0 FL0 BL0 BR0 UBR0 UFL0 DFL0 DBR0 UFR0 UBL0 DFR0 DBL0
diff --git a/test/072_coord_co/01_U.out b/test/072_coord_co/01_U.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/01_U.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/02_U2.in b/test/072_coord_co/02_U2.in
new file mode 100644
index 0000000..316ad57
--- /dev/null
+++ b/test/072_coord_co/02_U2.in
@@ -0,0 +1 @@
UB0 UF0 DB0 DF0 UL0 UR0 DL0 DR0 FR0 FL0 BL0 BR0 UBL0 UFR0 DFL0 DBR0 UBR0 UFL0 DFR0 DBL0
diff --git a/test/072_coord_co/02_U2.out b/test/072_coord_co/02_U2.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/02_U2.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/03_U3.in b/test/072_coord_co/03_U3.in
new file mode 100644
index 0000000..7721ab5
--- /dev/null
+++ b/test/072_coord_co/03_U3.in
@@ -0,0 +1 @@
UL0 UR0 DB0 DF0 UF0 UB0 DL0 DR0 FR0 FL0 BL0 BR0 UFL0 UBR0 DFL0 DBR0 UBL0 UFR0 DFR0 DBL0
diff --git a/test/072_coord_co/03_U3.out b/test/072_coord_co/03_U3.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/03_U3.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/04_D.in b/test/072_coord_co/04_D.in
new file mode 100644
index 0000000..cf4f816
--- /dev/null
+++ b/test/072_coord_co/04_D.in
@@ -0,0 +1 @@
UF0 UB0 DR0 DL0 UR0 UL0 DB0 DF0 FR0 FL0 BL0 BR0 UFR0 UBL0 DBL0 DFR0 UFL0 UBR0 DFL0 DBR0
diff --git a/test/072_coord_co/04_D.out b/test/072_coord_co/04_D.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/04_D.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/07_R.in b/test/072_coord_co/07_R.in
new file mode 100644
index 0000000..8c8fcb3
--- /dev/null
+++ b/test/072_coord_co/07_R.in
@@ -0,0 +1 @@
UF0 UB0 DB0 DF0 FR0 UL0 DL0 BR0 DR0 FL0 BL0 UR0 DFR2 UBL0 DFL0 UBR2 UFL0 UFR1 DBR1 DBL0
diff --git a/test/072_coord_co/07_R.out b/test/072_coord_co/07_R.out
new file mode 100644
index 0000000..1f3d8a7
--- /dev/null
+++ b/test/072_coord_co/07_R.out
@@ -0,0 +1 @@
1028
diff --git a/test/072_coord_co/08_R2.in b/test/072_coord_co/08_R2.in
new file mode 100644
index 0000000..90765e2
--- /dev/null
+++ b/test/072_coord_co/08_R2.in
@@ -0,0 +1 @@
UF0 UB0 DB0 DF0 DR0 UL0 DL0 UR0 BR0 FL0 BL0 FR0 DBR0 UBL0 DFL0 UFR0 UFL0 DFR0 UBR0 DBL0
diff --git a/test/072_coord_co/08_R2.out b/test/072_coord_co/08_R2.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/08_R2.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/10_L.in b/test/072_coord_co/10_L.in
new file mode 100644
index 0000000..0b0565c
--- /dev/null
+++ b/test/072_coord_co/10_L.in
@@ -0,0 +1 @@
UF0 UB0 DB0 DF0 UR0 BL0 FL0 DR0 FR0 UL0 DL0 BR0 UFR0 DBL2 UFL2 DBR0 UBL1 UBR0 DFR0 DFL1
diff --git a/test/072_coord_co/10_L.out b/test/072_coord_co/10_L.out
new file mode 100644
index 0000000..f96ac06
--- /dev/null
+++ b/test/072_coord_co/10_L.out
@@ -0,0 +1 @@
105
diff --git a/test/072_coord_co/13_F.in b/test/072_coord_co/13_F.in
new file mode 100644
index 0000000..e805af8
--- /dev/null
+++ b/test/072_coord_co/13_F.in
@@ -0,0 +1 @@
FL1 UB0 DB0 FR1 UR0 UL0 DL0 DR0 UF1 DF1 BL0 BR0 UFL1 UBL0 DFR1 DBR0 DFL2 UBR0 UFR2 DBL0
diff --git a/test/072_coord_co/13_F.out b/test/072_coord_co/13_F.out
new file mode 100644
index 0000000..86868c5
--- /dev/null
+++ b/test/072_coord_co/13_F.out
@@ -0,0 +1 @@
1630
diff --git a/test/072_coord_co/14_F2.in b/test/072_coord_co/14_F2.in
new file mode 100644
index 0000000..8aa701f
--- /dev/null
+++ b/test/072_coord_co/14_F2.in
@@ -0,0 +1 @@
DF0 UB0 DB0 UF0 UR0 UL0 DL0 DR0 FL0 FR0 BL0 BR0 DFL0 UBL0 UFR0 DBR0 DFR0 UBR0 UFL0 DBL0
diff --git a/test/072_coord_co/14_F2.out b/test/072_coord_co/14_F2.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/14_F2.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/16_B.in b/test/072_coord_co/16_B.in
new file mode 100644
index 0000000..f7fb13c
--- /dev/null
+++ b/test/072_coord_co/16_B.in
@@ -0,0 +1 @@
UF0 BR1 BL1 DF0 UR0 UL0 DL0 DR0 FR0 FL0 UB1 DB1 UFR0 UBR1 DFL0 DBL1 UFL0 DBR2 DFR0 UBL2
diff --git a/test/072_coord_co/16_B.out b/test/072_coord_co/16_B.out
new file mode 100644
index 0000000..1c599d4
--- /dev/null
+++ b/test/072_coord_co/16_B.out
@@ -0,0 +1 @@
516
diff --git a/test/072_coord_co/17_B2.in b/test/072_coord_co/17_B2.in
new file mode 100644
index 0000000..9b33e35
--- /dev/null
+++ b/test/072_coord_co/17_B2.in
@@ -0,0 +1 @@
UF0 DB0 UB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BR0 BL0 UFR0 DBR0 DFL0 UBL0 UFL0 DBL0 DFR0 UBR0
diff --git a/test/072_coord_co/17_B2.out b/test/072_coord_co/17_B2.out
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/072_coord_co/17_B2.out
@@ -0,0 +1 @@
0
diff --git a/test/072_coord_co/20_scrambled.in b/test/072_coord_co/20_scrambled.in
new file mode 100644
index 0000000..274d30b
--- /dev/null
+++ b/test/072_coord_co/20_scrambled.in
@@ -0,0 +1,3 @@
1UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2
2
3// Scramble: U R D' L D' F L2 D L F B D2 B' L2 F U2 L2 D2 R2 L2 B'
diff --git a/test/072_coord_co/20_scrambled.out b/test/072_coord_co/20_scrambled.out
new file mode 100644
index 0000000..6943e4d
--- /dev/null
+++ b/test/072_coord_co/20_scrambled.out
@@ -0,0 +1 @@
957
diff --git a/test/072_coord_co/coord_co_tests.c b/test/072_coord_co/coord_co_tests.c
new file mode 100644
index 0000000..bb061e5
--- /dev/null
+++ b/test/072_coord_co/coord_co_tests.c
@@ -0,0 +1,21 @@
1#include "../test.h"
2
3int64_t coord_fast_co(cube_fast_t);
4cube_fast_t cubetofast(cube_t);
5
6int main(void) {
7 char str[STRLENMAX];
8 cube_t cube;
9 cube_fast_t fast;
10 int64_t result;
11
12 fgets(str, STRLENMAX, stdin);
13 cube = readcube("H48", str);
14 fast = cubetofast(cube);
15
16 result = coord_fast_co(fast);
17
18 printf("%" PRId64 "\n", result);
19
20 return 0;
21}

Generated with cgit - Back to sebastiano.tronto.net