diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-03-29 12:11:24 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-03-29 12:11:24 +0100 |
| commit | ec564e62dcfe701b5ee3111b92c7d72ffd0dda6c (patch) | |
| tree | 6d7a6ad613f8c139c556a0b4dda73d20d4cb7926 /test | |
| parent | 9b0be93fb5fe23ae9f1a7a57b9db60561d8673e8 (diff) | |
| download | nissy-core-ec564e62dcfe701b5ee3111b92c7d72ffd0dda6c.tar.gz nissy-core-ec564e62dcfe701b5ee3111b92c7d72ffd0dda6c.zip | |
Added esep coordinate
Diffstat (limited to 'test')
| -rw-r--r-- | test/074_coord_esep/00_solved.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/00_solved.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/01_U.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/01_U.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/02_U2.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/02_U2.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/20_scrambled.in | 3 | ||||
| -rw-r--r-- | test/074_coord_esep/20_scrambled.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/21_swapaxis_FB.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/21_swapaxis_FB.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/22_swapaxis_RL.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/22_swapaxis_RL.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/23_swapaxis_UD.in | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/23_swapaxis_UD.out | 1 | ||||
| -rw-r--r-- | test/074_coord_esep/coord_esep_tests.c | 21 |
15 files changed, 37 insertions, 0 deletions
diff --git a/test/074_coord_esep/00_solved.in b/test/074_coord_esep/00_solved.in new file mode 100644 index 0000000..dff224d --- /dev/null +++ b/test/074_coord_esep/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/074_coord_esep/00_solved.out b/test/074_coord_esep/00_solved.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/074_coord_esep/00_solved.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/test/074_coord_esep/01_U.in b/test/074_coord_esep/01_U.in new file mode 100644 index 0000000..b5b36ad --- /dev/null +++ b/test/074_coord_esep/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/074_coord_esep/01_U.out b/test/074_coord_esep/01_U.out new file mode 100644 index 0000000..c3f407c --- /dev/null +++ b/test/074_coord_esep/01_U.out | |||
| @@ -0,0 +1 @@ | |||
| 55 | |||
diff --git a/test/074_coord_esep/02_U2.in b/test/074_coord_esep/02_U2.in new file mode 100644 index 0000000..316ad57 --- /dev/null +++ b/test/074_coord_esep/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/074_coord_esep/02_U2.out b/test/074_coord_esep/02_U2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/074_coord_esep/02_U2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/test/074_coord_esep/20_scrambled.in b/test/074_coord_esep/20_scrambled.in new file mode 100644 index 0000000..274d30b --- /dev/null +++ b/test/074_coord_esep/20_scrambled.in | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | UL0 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/074_coord_esep/20_scrambled.out b/test/074_coord_esep/20_scrambled.out new file mode 100644 index 0000000..b204ff8 --- /dev/null +++ b/test/074_coord_esep/20_scrambled.out | |||
| @@ -0,0 +1 @@ | |||
| 22248 | |||
diff --git a/test/074_coord_esep/21_swapaxis_FB.in b/test/074_coord_esep/21_swapaxis_FB.in new file mode 100644 index 0000000..d06e331 --- /dev/null +++ b/test/074_coord_esep/21_swapaxis_FB.in | |||
| @@ -0,0 +1 @@ | |||
| FR0 BR0 BL0 FL0 UR0 UL0 DL0 DR0 DF0 UF0 UB0 DB0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/test/074_coord_esep/21_swapaxis_FB.out b/test/074_coord_esep/21_swapaxis_FB.out new file mode 100644 index 0000000..cb33fb1 --- /dev/null +++ b/test/074_coord_esep/21_swapaxis_FB.out | |||
| @@ -0,0 +1 @@ | |||
| 34649 | |||
diff --git a/test/074_coord_esep/22_swapaxis_RL.in b/test/074_coord_esep/22_swapaxis_RL.in new file mode 100644 index 0000000..cb1ea4e --- /dev/null +++ b/test/074_coord_esep/22_swapaxis_RL.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 FR0 FL0 BL0 BR0 DR0 DL0 UL0 UR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/test/074_coord_esep/22_swapaxis_RL.out b/test/074_coord_esep/22_swapaxis_RL.out new file mode 100644 index 0000000..ddeb3cf --- /dev/null +++ b/test/074_coord_esep/22_swapaxis_RL.out | |||
| @@ -0,0 +1 @@ | |||
| 4830 | |||
diff --git a/test/074_coord_esep/23_swapaxis_UD.in b/test/074_coord_esep/23_swapaxis_UD.in new file mode 100644 index 0000000..9c57408 --- /dev/null +++ b/test/074_coord_esep/23_swapaxis_UD.in | |||
| @@ -0,0 +1 @@ | |||
| UR0 UL0 DL0 DR0 UB0 UF0 DF0 DB0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/test/074_coord_esep/23_swapaxis_UD.out b/test/074_coord_esep/23_swapaxis_UD.out new file mode 100644 index 0000000..b5489e5 --- /dev/null +++ b/test/074_coord_esep/23_swapaxis_UD.out | |||
| @@ -0,0 +1 @@ | |||
| 69 | |||
diff --git a/test/074_coord_esep/coord_esep_tests.c b/test/074_coord_esep/coord_esep_tests.c new file mode 100644 index 0000000..8276dc0 --- /dev/null +++ b/test/074_coord_esep/coord_esep_tests.c | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | int64_t coord_fast_esep(cube_fast_t); | ||
| 4 | cube_fast_t cubetofast(cube_t); | ||
| 5 | |||
| 6 | int 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_esep(fast); | ||
| 17 | |||
| 18 | printf("%" PRId64 "\n", result); | ||
| 19 | |||
| 20 | return 0; | ||
| 21 | } | ||
