diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/076_copy_co/00_solved_solved.in | 2 | ||||
| -rw-r--r-- | test/076_copy_co/00_solved_solved.out (renamed from test/078_invcoord_esep/00_solved.in) | 0 | ||||
| -rw-r--r-- | test/076_copy_co/01_solved_scrambled.in | 4 | ||||
| -rw-r--r-- | test/076_copy_co/01_solved_scrambled.out | 1 | ||||
| -rw-r--r-- | test/076_copy_co/02_scrambled_scrambled.in | 4 | ||||
| -rw-r--r-- | test/076_copy_co/02_scrambled_scrambled.out | 1 | ||||
| -rw-r--r-- | test/076_copy_co/copy_co_tests.c | 34 | ||||
| -rw-r--r-- | test/077_copy_corners/00_solved_scrambled.in (renamed from test/076_copy_corners/00_solved_scrambled.in) | 0 | ||||
| -rw-r--r-- | test/077_copy_corners/00_solved_scrambled.out (renamed from test/076_copy_corners/00_solved_scrambled.out) | 0 | ||||
| -rw-r--r-- | test/077_copy_corners/copy_corners_tests.c (renamed from test/076_copy_corners/copy_corners_tests.c) | 0 | ||||
| -rw-r--r-- | test/078_copy_edges/00_solved_scrambled.in (renamed from test/077_copy_edges/00_solved_scrambled.in) | 0 | ||||
| -rw-r--r-- | test/078_copy_edges/00_solved_scrambled.out (renamed from test/077_copy_edges/00_solved_scrambled.out) | 0 | ||||
| -rw-r--r-- | test/078_copy_edges/copy_edges_tests.c (renamed from test/077_copy_edges/copy_edges_tests.c) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/00_solved.in | 1 | ||||
| -rw-r--r-- | test/080_invcoord_esep/00_solved.out (renamed from test/078_invcoord_esep/00_solved.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/01_U.in (renamed from test/078_invcoord_esep/01_U.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/01_U.out (renamed from test/078_invcoord_esep/01_U.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/02_U2.in (renamed from test/078_invcoord_esep/02_U2.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/02_U2.out (renamed from test/078_invcoord_esep/02_U2.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/20_scrambled.in (renamed from test/078_invcoord_esep/20_scrambled.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/20_scrambled.out (renamed from test/078_invcoord_esep/20_scrambled.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/21_swapaxis_FB.in (renamed from test/078_invcoord_esep/21_swapaxis_FB.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/21_swapaxis_FB.out (renamed from test/078_invcoord_esep/21_swapaxis_FB.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/22_swapaxis_RL.in (renamed from test/078_invcoord_esep/22_swapaxis_RL.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/22_swapaxis_RL.out (renamed from test/078_invcoord_esep/22_swapaxis_RL.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/23_swapaxis_UD.in (renamed from test/078_invcoord_esep/23_swapaxis_UD.in) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/23_swapaxis_UD.out (renamed from test/078_invcoord_esep/23_swapaxis_UD.out) | 0 | ||||
| -rw-r--r-- | test/080_invcoord_esep/invcoord_esep_tests.c (renamed from test/078_invcoord_esep/invcoord_esep_tests.c) | 0 | ||||
| -rw-r--r-- | test/081_invcoord_co/00_all.in (renamed from test/079_invcoord_co/00_all.in) | 0 | ||||
| -rw-r--r-- | test/081_invcoord_co/00_all.out (renamed from test/079_invcoord_co/00_all.out) | 0 | ||||
| -rw-r--r-- | test/081_invcoord_co/invcoord_co_tests.c (renamed from test/079_invcoord_co/invcoord_co_tests.c) | 0 | ||||
| -rw-r--r-- | test/082_invcoord_cp/00_all.in (renamed from test/080_invcoord_cp/00_all.in) | 0 | ||||
| -rw-r--r-- | test/082_invcoord_cp/00_all.out (renamed from test/080_invcoord_cp/00_all.out) | 0 | ||||
| -rw-r--r-- | test/082_invcoord_cp/invcoord_cp_tests.c (renamed from test/080_invcoord_cp/invcoord_cp_tests.c) | 0 | ||||
| -rw-r--r-- | test/083_invcoord_epud/00_all.in (renamed from test/081_invcoord_epud/00_all.in) | 0 | ||||
| -rw-r--r-- | test/083_invcoord_epud/00_all.out (renamed from test/081_invcoord_epud/00_all.out) | 0 | ||||
| -rw-r--r-- | test/083_invcoord_epud/invcoord_epud_tests.c (renamed from test/081_invcoord_epud/invcoord_epud_tests.c) | 0 | ||||
| -rw-r--r-- | test/084_invcoord_epe/00_all.in (renamed from test/082_invcoord_epe/00_all.in) | 0 | ||||
| -rw-r--r-- | test/084_invcoord_epe/00_all.out (renamed from test/082_invcoord_epe/00_all.out) | 0 | ||||
| -rw-r--r-- | test/084_invcoord_epe/invcoord_epe_tests.c (renamed from test/082_invcoord_epe/invcoord_epe_tests.c) | 0 | ||||
| -rw-r--r-- | test/085_invcoord_epudsep/00_all.in (renamed from test/083_invcoord_epudsep/00_all.in) | 0 | ||||
| -rw-r--r-- | test/085_invcoord_epudsep/00_all.out (renamed from test/083_invcoord_epudsep/00_all.out) | 0 | ||||
| -rw-r--r-- | test/085_invcoord_epudsep/invcoord_epudsep_tests.c (renamed from test/083_invcoord_epudsep/invcoord_epudsep_tests.c) | 0 |
43 files changed, 47 insertions, 0 deletions
diff --git a/test/076_copy_co/00_solved_solved.in b/test/076_copy_co/00_solved_solved.in new file mode 100644 index 0000000..14c8c39 --- /dev/null +++ b/test/076_copy_co/00_solved_solved.in | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | ABCDEFGH=ABCDEFGHIJKL=A | ||
| 2 | ABCDEFGH=ABCDEFGHIJKL=A | ||
diff --git a/test/078_invcoord_esep/00_solved.in b/test/076_copy_co/00_solved_solved.out index 5aa6ba7..5aa6ba7 100644 --- a/test/078_invcoord_esep/00_solved.in +++ b/test/076_copy_co/00_solved_solved.out | |||
diff --git a/test/076_copy_co/01_solved_scrambled.in b/test/076_copy_co/01_solved_scrambled.in new file mode 100644 index 0000000..3a1db4b --- /dev/null +++ b/test/076_copy_co/01_solved_scrambled.in | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | ABCDEFGH=ABCDEFGHIJKL=A | ||
| 2 | CILVXGMR=FKbGIDSXBJAU=A | ||
| 3 | |||
| 4 | // 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/076_copy_co/01_solved_scrambled.out b/test/076_copy_co/01_solved_scrambled.out new file mode 100644 index 0000000..bcfe94c --- /dev/null +++ b/test/076_copy_co/01_solved_scrambled.out | |||
| @@ -0,0 +1 @@ | |||
| AJKTUFOX=ABCDEFGHIJKL=A | |||
diff --git a/test/076_copy_co/02_scrambled_scrambled.in b/test/076_copy_co/02_scrambled_scrambled.in new file mode 100644 index 0000000..fb0bccd --- /dev/null +++ b/test/076_copy_co/02_scrambled_scrambled.in | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | ICLMVGRX=FIJDAXKGbBUS=A | ||
| 2 | CILVXGMR=FKbGIDSXBJAU=A | ||
| 3 | |||
| 4 | // 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/076_copy_co/02_scrambled_scrambled.out b/test/076_copy_co/02_scrambled_scrambled.out new file mode 100644 index 0000000..cde43a9 --- /dev/null +++ b/test/076_copy_co/02_scrambled_scrambled.out | |||
| @@ -0,0 +1 @@ | |||
| AKLUVGJX=FIJDAXKGbBUS=A | |||
diff --git a/test/076_copy_co/copy_co_tests.c b/test/076_copy_co/copy_co_tests.c new file mode 100644 index 0000000..3ca109b --- /dev/null +++ b/test/076_copy_co/copy_co_tests.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | void copy_co(cube_t *, cube_t); | ||
| 4 | void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]); | ||
| 5 | |||
| 6 | void run(void) { | ||
| 7 | char str[STRLENMAX]; | ||
| 8 | oriented_cube_t cube1, cube2; | ||
| 9 | uint8_t edge[12], corner[8]; | ||
| 10 | |||
| 11 | fgets(str, STRLENMAX, stdin); | ||
| 12 | cube1 = readcube(str); | ||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | cube2 = readcube(str); | ||
| 15 | |||
| 16 | copy_co(&cube1.cube, cube2.cube); | ||
| 17 | |||
| 18 | if (iserror(cube1)) { | ||
| 19 | printf("Error copying CO\n"); | ||
| 20 | } else if (!isconsistent(cube2)) { | ||
| 21 | pieces(&cube1.cube, corner, edge); | ||
| 22 | fprintf(stderr, "edges: "); | ||
| 23 | for (int i = 0; i < 12; i++) | ||
| 24 | fprintf(stderr, "%d ", edge[i]); | ||
| 25 | fprintf(stderr, "\n"); | ||
| 26 | for (int i = 0; i < 8; i++) | ||
| 27 | fprintf(stderr, "%d ", corner[i]); | ||
| 28 | fprintf(stderr, "\n"); | ||
| 29 | printf("Setting CO resulted in inconsistent cube\n"); | ||
| 30 | } else { | ||
| 31 | writecube(cube1, NISSY_SIZE_CUBE, str); | ||
| 32 | printf("%s\n", str); | ||
| 33 | } | ||
| 34 | } | ||
diff --git a/test/076_copy_corners/00_solved_scrambled.in b/test/077_copy_corners/00_solved_scrambled.in index 38c1566..38c1566 100644 --- a/test/076_copy_corners/00_solved_scrambled.in +++ b/test/077_copy_corners/00_solved_scrambled.in | |||
diff --git a/test/076_copy_corners/00_solved_scrambled.out b/test/077_copy_corners/00_solved_scrambled.out index 04ed32e..04ed32e 100644 --- a/test/076_copy_corners/00_solved_scrambled.out +++ b/test/077_copy_corners/00_solved_scrambled.out | |||
diff --git a/test/076_copy_corners/copy_corners_tests.c b/test/077_copy_corners/copy_corners_tests.c index 02e949b..02e949b 100644 --- a/test/076_copy_corners/copy_corners_tests.c +++ b/test/077_copy_corners/copy_corners_tests.c | |||
diff --git a/test/077_copy_edges/00_solved_scrambled.in b/test/078_copy_edges/00_solved_scrambled.in index 38c1566..38c1566 100644 --- a/test/077_copy_edges/00_solved_scrambled.in +++ b/test/078_copy_edges/00_solved_scrambled.in | |||
diff --git a/test/077_copy_edges/00_solved_scrambled.out b/test/078_copy_edges/00_solved_scrambled.out index 0d38603..0d38603 100644 --- a/test/077_copy_edges/00_solved_scrambled.out +++ b/test/078_copy_edges/00_solved_scrambled.out | |||
diff --git a/test/077_copy_edges/copy_edges_tests.c b/test/078_copy_edges/copy_edges_tests.c index f3b0589..f3b0589 100644 --- a/test/077_copy_edges/copy_edges_tests.c +++ b/test/078_copy_edges/copy_edges_tests.c | |||
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/078_invcoord_esep/00_solved.out b/test/080_invcoord_esep/00_solved.out index 573541a..573541a 100644 --- a/test/078_invcoord_esep/00_solved.out +++ b/test/080_invcoord_esep/00_solved.out | |||
diff --git a/test/078_invcoord_esep/01_U.in b/test/080_invcoord_esep/01_U.in index 250d3a1..250d3a1 100644 --- a/test/078_invcoord_esep/01_U.in +++ b/test/080_invcoord_esep/01_U.in | |||
diff --git a/test/078_invcoord_esep/01_U.out b/test/080_invcoord_esep/01_U.out index c3f407c..c3f407c 100644 --- a/test/078_invcoord_esep/01_U.out +++ b/test/080_invcoord_esep/01_U.out | |||
diff --git a/test/078_invcoord_esep/02_U2.in b/test/080_invcoord_esep/02_U2.in index b14792e..b14792e 100644 --- a/test/078_invcoord_esep/02_U2.in +++ b/test/080_invcoord_esep/02_U2.in | |||
diff --git a/test/078_invcoord_esep/02_U2.out b/test/080_invcoord_esep/02_U2.out index 573541a..573541a 100644 --- a/test/078_invcoord_esep/02_U2.out +++ b/test/080_invcoord_esep/02_U2.out | |||
diff --git a/test/078_invcoord_esep/20_scrambled.in b/test/080_invcoord_esep/20_scrambled.in index cfe9ee4..cfe9ee4 100644 --- a/test/078_invcoord_esep/20_scrambled.in +++ b/test/080_invcoord_esep/20_scrambled.in | |||
diff --git a/test/078_invcoord_esep/20_scrambled.out b/test/080_invcoord_esep/20_scrambled.out index b204ff8..b204ff8 100644 --- a/test/078_invcoord_esep/20_scrambled.out +++ b/test/080_invcoord_esep/20_scrambled.out | |||
diff --git a/test/078_invcoord_esep/21_swapaxis_FB.in b/test/080_invcoord_esep/21_swapaxis_FB.in index 485925f..485925f 100644 --- a/test/078_invcoord_esep/21_swapaxis_FB.in +++ b/test/080_invcoord_esep/21_swapaxis_FB.in | |||
diff --git a/test/078_invcoord_esep/21_swapaxis_FB.out b/test/080_invcoord_esep/21_swapaxis_FB.out index cb33fb1..cb33fb1 100644 --- a/test/078_invcoord_esep/21_swapaxis_FB.out +++ b/test/080_invcoord_esep/21_swapaxis_FB.out | |||
diff --git a/test/078_invcoord_esep/22_swapaxis_RL.in b/test/080_invcoord_esep/22_swapaxis_RL.in index 7fa067f..7fa067f 100644 --- a/test/078_invcoord_esep/22_swapaxis_RL.in +++ b/test/080_invcoord_esep/22_swapaxis_RL.in | |||
diff --git a/test/078_invcoord_esep/22_swapaxis_RL.out b/test/080_invcoord_esep/22_swapaxis_RL.out index ddeb3cf..ddeb3cf 100644 --- a/test/078_invcoord_esep/22_swapaxis_RL.out +++ b/test/080_invcoord_esep/22_swapaxis_RL.out | |||
diff --git a/test/078_invcoord_esep/23_swapaxis_UD.in b/test/080_invcoord_esep/23_swapaxis_UD.in index 3a1502b..3a1502b 100644 --- a/test/078_invcoord_esep/23_swapaxis_UD.in +++ b/test/080_invcoord_esep/23_swapaxis_UD.in | |||
diff --git a/test/078_invcoord_esep/23_swapaxis_UD.out b/test/080_invcoord_esep/23_swapaxis_UD.out index b5489e5..b5489e5 100644 --- a/test/078_invcoord_esep/23_swapaxis_UD.out +++ b/test/080_invcoord_esep/23_swapaxis_UD.out | |||
diff --git a/test/078_invcoord_esep/invcoord_esep_tests.c b/test/080_invcoord_esep/invcoord_esep_tests.c index 16db3a0..16db3a0 100644 --- a/test/078_invcoord_esep/invcoord_esep_tests.c +++ b/test/080_invcoord_esep/invcoord_esep_tests.c | |||
diff --git a/test/079_invcoord_co/00_all.in b/test/081_invcoord_co/00_all.in index e69de29..e69de29 100644 --- a/test/079_invcoord_co/00_all.in +++ b/test/081_invcoord_co/00_all.in | |||
diff --git a/test/079_invcoord_co/00_all.out b/test/081_invcoord_co/00_all.out index d6109db..d6109db 100644 --- a/test/079_invcoord_co/00_all.out +++ b/test/081_invcoord_co/00_all.out | |||
diff --git a/test/079_invcoord_co/invcoord_co_tests.c b/test/081_invcoord_co/invcoord_co_tests.c index dd5853e..dd5853e 100644 --- a/test/079_invcoord_co/invcoord_co_tests.c +++ b/test/081_invcoord_co/invcoord_co_tests.c | |||
diff --git a/test/080_invcoord_cp/00_all.in b/test/082_invcoord_cp/00_all.in index e69de29..e69de29 100644 --- a/test/080_invcoord_cp/00_all.in +++ b/test/082_invcoord_cp/00_all.in | |||
diff --git a/test/080_invcoord_cp/00_all.out b/test/082_invcoord_cp/00_all.out index d6109db..d6109db 100644 --- a/test/080_invcoord_cp/00_all.out +++ b/test/082_invcoord_cp/00_all.out | |||
diff --git a/test/080_invcoord_cp/invcoord_cp_tests.c b/test/082_invcoord_cp/invcoord_cp_tests.c index 7d1e33f..7d1e33f 100644 --- a/test/080_invcoord_cp/invcoord_cp_tests.c +++ b/test/082_invcoord_cp/invcoord_cp_tests.c | |||
diff --git a/test/081_invcoord_epud/00_all.in b/test/083_invcoord_epud/00_all.in index e69de29..e69de29 100644 --- a/test/081_invcoord_epud/00_all.in +++ b/test/083_invcoord_epud/00_all.in | |||
diff --git a/test/081_invcoord_epud/00_all.out b/test/083_invcoord_epud/00_all.out index d6109db..d6109db 100644 --- a/test/081_invcoord_epud/00_all.out +++ b/test/083_invcoord_epud/00_all.out | |||
diff --git a/test/081_invcoord_epud/invcoord_epud_tests.c b/test/083_invcoord_epud/invcoord_epud_tests.c index 6d7672b..6d7672b 100644 --- a/test/081_invcoord_epud/invcoord_epud_tests.c +++ b/test/083_invcoord_epud/invcoord_epud_tests.c | |||
diff --git a/test/082_invcoord_epe/00_all.in b/test/084_invcoord_epe/00_all.in index e69de29..e69de29 100644 --- a/test/082_invcoord_epe/00_all.in +++ b/test/084_invcoord_epe/00_all.in | |||
diff --git a/test/082_invcoord_epe/00_all.out b/test/084_invcoord_epe/00_all.out index d6109db..d6109db 100644 --- a/test/082_invcoord_epe/00_all.out +++ b/test/084_invcoord_epe/00_all.out | |||
diff --git a/test/082_invcoord_epe/invcoord_epe_tests.c b/test/084_invcoord_epe/invcoord_epe_tests.c index 69c3c50..69c3c50 100644 --- a/test/082_invcoord_epe/invcoord_epe_tests.c +++ b/test/084_invcoord_epe/invcoord_epe_tests.c | |||
diff --git a/test/083_invcoord_epudsep/00_all.in b/test/085_invcoord_epudsep/00_all.in index e69de29..e69de29 100644 --- a/test/083_invcoord_epudsep/00_all.in +++ b/test/085_invcoord_epudsep/00_all.in | |||
diff --git a/test/083_invcoord_epudsep/00_all.out b/test/085_invcoord_epudsep/00_all.out index d6109db..d6109db 100644 --- a/test/083_invcoord_epudsep/00_all.out +++ b/test/085_invcoord_epudsep/00_all.out | |||
diff --git a/test/083_invcoord_epudsep/invcoord_epudsep_tests.c b/test/085_invcoord_epudsep/invcoord_epudsep_tests.c index 709e5d8..709e5d8 100644 --- a/test/083_invcoord_epudsep/invcoord_epudsep_tests.c +++ b/test/085_invcoord_epudsep/invcoord_epudsep_tests.c | |||
