diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-22 18:07:06 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-22 18:07:06 +0100 |
| commit | 086a06fe3d84ac8b2e74c824e05f9d23f0b292ab (patch) | |
| tree | 596034b2283b053e023d0988d875396946b9384d /test/078_invcoord_esep | |
| parent | 0c5e4730c699ac006feec4efe25c390977fe372f (diff) | |
| download | nissy-core-086a06fe3d84ac8b2e74c824e05f9d23f0b292ab.tar.gz nissy-core-086a06fe3d84ac8b2e74c824e05f9d23f0b292ab.zip | |
Added tests for copy_co, renamed some tests
Diffstat (limited to 'test/078_invcoord_esep')
| -rw-r--r-- | test/078_invcoord_esep/00_solved.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/00_solved.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/01_U.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/01_U.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/02_U2.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/02_U2.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/20_scrambled.in | 3 | ||||
| -rw-r--r-- | test/078_invcoord_esep/20_scrambled.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/21_swapaxis_FB.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/21_swapaxis_FB.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/22_swapaxis_RL.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/22_swapaxis_RL.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/23_swapaxis_UD.in | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/23_swapaxis_UD.out | 1 | ||||
| -rw-r--r-- | test/078_invcoord_esep/invcoord_esep_tests.c | 19 |
15 files changed, 0 insertions, 35 deletions
diff --git a/test/078_invcoord_esep/00_solved.in b/test/078_invcoord_esep/00_solved.in deleted file mode 100644 index 5aa6ba7..0000000 --- a/test/078_invcoord_esep/00_solved.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=ABCDEFGHIJKL=A | ||
diff --git a/test/078_invcoord_esep/00_solved.out b/test/078_invcoord_esep/00_solved.out deleted file mode 100644 index 573541a..0000000 --- a/test/078_invcoord_esep/00_solved.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 0 | ||
diff --git a/test/078_invcoord_esep/01_U.in b/test/078_invcoord_esep/01_U.in deleted file mode 100644 index 250d3a1..0000000 --- a/test/078_invcoord_esep/01_U.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | FECDABGH=EFCDBAGHIJKL=A | ||
diff --git a/test/078_invcoord_esep/01_U.out b/test/078_invcoord_esep/01_U.out deleted file mode 100644 index c3f407c..0000000 --- a/test/078_invcoord_esep/01_U.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 55 | ||
diff --git a/test/078_invcoord_esep/02_U2.in b/test/078_invcoord_esep/02_U2.in deleted file mode 100644 index b14792e..0000000 --- a/test/078_invcoord_esep/02_U2.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | BACDFEGH=BACDFEGHIJKL=A | ||
diff --git a/test/078_invcoord_esep/02_U2.out b/test/078_invcoord_esep/02_U2.out deleted file mode 100644 index 573541a..0000000 --- a/test/078_invcoord_esep/02_U2.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 0 | ||
diff --git a/test/078_invcoord_esep/20_scrambled.in b/test/078_invcoord_esep/20_scrambled.in deleted file mode 100644 index cfe9ee4..0000000 --- a/test/078_invcoord_esep/20_scrambled.in +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CILVXGMR=FKbGIDSXBJAU=A | ||
| 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/078_invcoord_esep/20_scrambled.out b/test/078_invcoord_esep/20_scrambled.out deleted file mode 100644 index b204ff8..0000000 --- a/test/078_invcoord_esep/20_scrambled.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 22248 | ||
diff --git a/test/078_invcoord_esep/21_swapaxis_FB.in b/test/078_invcoord_esep/21_swapaxis_FB.in deleted file mode 100644 index 485925f..0000000 --- a/test/078_invcoord_esep/21_swapaxis_FB.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=ILKJEFGHDABC=A | ||
diff --git a/test/078_invcoord_esep/21_swapaxis_FB.out b/test/078_invcoord_esep/21_swapaxis_FB.out deleted file mode 100644 index cb33fb1..0000000 --- a/test/078_invcoord_esep/21_swapaxis_FB.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 34649 | ||
diff --git a/test/078_invcoord_esep/22_swapaxis_RL.in b/test/078_invcoord_esep/22_swapaxis_RL.in deleted file mode 100644 index 7fa067f..0000000 --- a/test/078_invcoord_esep/22_swapaxis_RL.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=ABCDIJKLHGFE=A | ||
diff --git a/test/078_invcoord_esep/22_swapaxis_RL.out b/test/078_invcoord_esep/22_swapaxis_RL.out deleted file mode 100644 index ddeb3cf..0000000 --- a/test/078_invcoord_esep/22_swapaxis_RL.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 4830 | ||
diff --git a/test/078_invcoord_esep/23_swapaxis_UD.in b/test/078_invcoord_esep/23_swapaxis_UD.in deleted file mode 100644 index 3a1502b..0000000 --- a/test/078_invcoord_esep/23_swapaxis_UD.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ABCDEFGH=EFGHBADCIJKL=A | ||
diff --git a/test/078_invcoord_esep/23_swapaxis_UD.out b/test/078_invcoord_esep/23_swapaxis_UD.out deleted file mode 100644 index b5489e5..0000000 --- a/test/078_invcoord_esep/23_swapaxis_UD.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 69 | ||
diff --git a/test/078_invcoord_esep/invcoord_esep_tests.c b/test/078_invcoord_esep/invcoord_esep_tests.c deleted file mode 100644 index 16db3a0..0000000 --- a/test/078_invcoord_esep/invcoord_esep_tests.c +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | uint64_t coord_esep(cube_t); | ||
| 4 | cube_t invcoord_esep(uint64_t); | ||
| 5 | |||
| 6 | void run(void) { | ||
| 7 | char str[STRLENMAX]; | ||
| 8 | oriented_cube_t cube; | ||
| 9 | uint64_t i; | ||
| 10 | |||
| 11 | fgets(str, STRLENMAX, stdin); | ||
| 12 | cube = readcube(str); | ||
| 13 | |||
| 14 | i = coord_esep(cube.cube); | ||
| 15 | cube.cube = invcoord_esep(i); | ||
| 16 | i = coord_esep(cube.cube); | ||
| 17 | |||
| 18 | printf("%" PRIu64 "\n", i); | ||
| 19 | } | ||
