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/080_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/080_invcoord_esep')
| -rw-r--r-- | test/080_invcoord_esep/00_solved.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/00_solved.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/01_U.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/01_U.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/02_U2.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/02_U2.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/20_scrambled.in | 3 | ||||
| -rw-r--r-- | test/080_invcoord_esep/20_scrambled.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/21_swapaxis_FB.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/21_swapaxis_FB.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/22_swapaxis_RL.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/22_swapaxis_RL.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/23_swapaxis_UD.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/23_swapaxis_UD.out | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/invcoord_esep_tests.c | 19 |
15 files changed, 35 insertions, 0 deletions
diff --git a/test/080_invcoord_esep/00_solved.in b/test/080_invcoord_esep/00_solved.in new file mode 100644 index 0000000..5aa6ba7 --- /dev/null +++ b/test/080_invcoord_esep/00_solved.in | |||
| @@ -0,0 +1 @@ | |||
| ABCDEFGH=ABCDEFGHIJKL=A | |||
diff --git a/test/080_invcoord_esep/00_solved.out b/test/080_invcoord_esep/00_solved.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/080_invcoord_esep/00_solved.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/test/080_invcoord_esep/01_U.in b/test/080_invcoord_esep/01_U.in new file mode 100644 index 0000000..250d3a1 --- /dev/null +++ b/test/080_invcoord_esep/01_U.in | |||
| @@ -0,0 +1 @@ | |||
| FECDABGH=EFCDBAGHIJKL=A | |||
diff --git a/test/080_invcoord_esep/01_U.out b/test/080_invcoord_esep/01_U.out new file mode 100644 index 0000000..c3f407c --- /dev/null +++ b/test/080_invcoord_esep/01_U.out | |||
| @@ -0,0 +1 @@ | |||
| 55 | |||
diff --git a/test/080_invcoord_esep/02_U2.in b/test/080_invcoord_esep/02_U2.in new file mode 100644 index 0000000..b14792e --- /dev/null +++ b/test/080_invcoord_esep/02_U2.in | |||
| @@ -0,0 +1 @@ | |||
| BACDFEGH=BACDFEGHIJKL=A | |||
diff --git a/test/080_invcoord_esep/02_U2.out b/test/080_invcoord_esep/02_U2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/080_invcoord_esep/02_U2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/test/080_invcoord_esep/20_scrambled.in b/test/080_invcoord_esep/20_scrambled.in new file mode 100644 index 0000000..cfe9ee4 --- /dev/null +++ b/test/080_invcoord_esep/20_scrambled.in | |||
| @@ -0,0 +1,3 @@ | |||
| 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/080_invcoord_esep/20_scrambled.out b/test/080_invcoord_esep/20_scrambled.out new file mode 100644 index 0000000..b204ff8 --- /dev/null +++ b/test/080_invcoord_esep/20_scrambled.out | |||
| @@ -0,0 +1 @@ | |||
| 22248 | |||
diff --git a/test/080_invcoord_esep/21_swapaxis_FB.in b/test/080_invcoord_esep/21_swapaxis_FB.in new file mode 100644 index 0000000..485925f --- /dev/null +++ b/test/080_invcoord_esep/21_swapaxis_FB.in | |||
| @@ -0,0 +1 @@ | |||
| ABCDEFGH=ILKJEFGHDABC=A | |||
diff --git a/test/080_invcoord_esep/21_swapaxis_FB.out b/test/080_invcoord_esep/21_swapaxis_FB.out new file mode 100644 index 0000000..cb33fb1 --- /dev/null +++ b/test/080_invcoord_esep/21_swapaxis_FB.out | |||
| @@ -0,0 +1 @@ | |||
| 34649 | |||
diff --git a/test/080_invcoord_esep/22_swapaxis_RL.in b/test/080_invcoord_esep/22_swapaxis_RL.in new file mode 100644 index 0000000..7fa067f --- /dev/null +++ b/test/080_invcoord_esep/22_swapaxis_RL.in | |||
| @@ -0,0 +1 @@ | |||
| ABCDEFGH=ABCDIJKLHGFE=A | |||
diff --git a/test/080_invcoord_esep/22_swapaxis_RL.out b/test/080_invcoord_esep/22_swapaxis_RL.out new file mode 100644 index 0000000..ddeb3cf --- /dev/null +++ b/test/080_invcoord_esep/22_swapaxis_RL.out | |||
| @@ -0,0 +1 @@ | |||
| 4830 | |||
diff --git a/test/080_invcoord_esep/23_swapaxis_UD.in b/test/080_invcoord_esep/23_swapaxis_UD.in new file mode 100644 index 0000000..3a1502b --- /dev/null +++ b/test/080_invcoord_esep/23_swapaxis_UD.in | |||
| @@ -0,0 +1 @@ | |||
| ABCDEFGH=EFGHBADCIJKL=A | |||
diff --git a/test/080_invcoord_esep/23_swapaxis_UD.out b/test/080_invcoord_esep/23_swapaxis_UD.out new file mode 100644 index 0000000..b5489e5 --- /dev/null +++ b/test/080_invcoord_esep/23_swapaxis_UD.out | |||
| @@ -0,0 +1 @@ | |||
| 69 | |||
diff --git a/test/080_invcoord_esep/invcoord_esep_tests.c b/test/080_invcoord_esep/invcoord_esep_tests.c new file mode 100644 index 0000000..16db3a0 --- /dev/null +++ b/test/080_invcoord_esep/invcoord_esep_tests.c | |||
| @@ -0,0 +1,19 @@ | |||
| 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 | } | ||
