From cd866d68cf1bf6ea928cc48a4f2b753c0b1baa6f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 11:14:06 +0200 Subject: Updated tests and added fixed =A to B32 output --- test/075_set_eo/00_solved_0.in | 2 +- test/075_set_eo/00_solved_0.out | 2 +- test/075_set_eo/01_solved_1.in | 2 +- test/075_set_eo/01_solved_1.out | 2 +- test/075_set_eo/02_solved_other.in | 2 +- test/075_set_eo/02_solved_other.out | 2 +- test/075_set_eo/03_solved_firstlast.in | 2 +- test/075_set_eo/03_solved_firstlast.out | 2 +- test/075_set_eo/10_scrambled_0.in | 2 +- test/075_set_eo/10_scrambled_0.out | 2 +- test/075_set_eo/11_scrambled_1.in | 2 +- test/075_set_eo/11_scrambled_1.out | 2 +- test/075_set_eo/set_eo_tests.c | 4 ++-- 13 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test/075_set_eo') diff --git a/test/075_set_eo/00_solved_0.in b/test/075_set_eo/00_solved_0.in index 55bb6bf..49bd044 100644 --- a/test/075_set_eo/00_solved_0.in +++ b/test/075_set_eo/00_solved_0.in @@ -1,2 +1,2 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCDEFGHIJKL=A 0 diff --git a/test/075_set_eo/00_solved_0.out b/test/075_set_eo/00_solved_0.out index dff224d..5aa6ba7 100644 --- a/test/075_set_eo/00_solved_0.out +++ b/test/075_set_eo/00_solved_0.out @@ -1 +1 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCDEFGHIJKL=A diff --git a/test/075_set_eo/01_solved_1.in b/test/075_set_eo/01_solved_1.in index edd864e..f545bfe 100644 --- a/test/075_set_eo/01_solved_1.in +++ b/test/075_set_eo/01_solved_1.in @@ -1,2 +1,2 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCDEFGHIJKL=A 2047 diff --git a/test/075_set_eo/01_solved_1.out b/test/075_set_eo/01_solved_1.out index ec7594a..79d5114 100644 --- a/test/075_set_eo/01_solved_1.out +++ b/test/075_set_eo/01_solved_1.out @@ -1 +1 @@ -UF1 UB1 DB1 DF1 UR1 UL1 DL1 DR1 FR1 FL1 BL1 BR1 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=QRSTUVWXYZab=A diff --git a/test/075_set_eo/02_solved_other.in b/test/075_set_eo/02_solved_other.in index 17e9b02..7b2e5b7 100644 --- a/test/075_set_eo/02_solved_other.in +++ b/test/075_set_eo/02_solved_other.in @@ -1,2 +1,2 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCDEFGHIJKL=A 20 diff --git a/test/075_set_eo/02_solved_other.out b/test/075_set_eo/02_solved_other.out index df73ef8..a193243 100644 --- a/test/075_set_eo/02_solved_other.out +++ b/test/075_set_eo/02_solved_other.out @@ -1 +1 @@ -UF0 UB0 DB0 DF1 UR0 UL1 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCTEVGHIJKL=A diff --git a/test/075_set_eo/03_solved_firstlast.in b/test/075_set_eo/03_solved_firstlast.in index a16a192..70bd867 100644 --- a/test/075_set_eo/03_solved_firstlast.in +++ b/test/075_set_eo/03_solved_firstlast.in @@ -1,2 +1,2 @@ -UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=ABCDEFGHIJKL=A 1024 diff --git a/test/075_set_eo/03_solved_firstlast.out b/test/075_set_eo/03_solved_firstlast.out index 8679be3..4256cff 100644 --- a/test/075_set_eo/03_solved_firstlast.out +++ b/test/075_set_eo/03_solved_firstlast.out @@ -1 +1 @@ -UF1 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR1 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 +ABCDEFGH=QBCDEFGHIJKb=A diff --git a/test/075_set_eo/10_scrambled_0.in b/test/075_set_eo/10_scrambled_0.in index 55dccca..8f4a7d7 100644 --- a/test/075_set_eo/10_scrambled_0.in +++ b/test/075_set_eo/10_scrambled_0.in @@ -1,4 +1,4 @@ -UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=FKbGIDSXBJAU=A 0 // 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/075_set_eo/10_scrambled_0.out b/test/075_set_eo/10_scrambled_0.out index 0eabd6e..8aae87a 100644 --- a/test/075_set_eo/10_scrambled_0.out +++ b/test/075_set_eo/10_scrambled_0.out @@ -1 +1 @@ -UL0 BL0 BR0 DL0 FR0 DF0 DB0 DR0 UB0 FL0 UF0 UR0 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=FKLGIDCHBJAE=A diff --git a/test/075_set_eo/11_scrambled_1.in b/test/075_set_eo/11_scrambled_1.in index 0037a04..4eac4f8 100644 --- a/test/075_set_eo/11_scrambled_1.in +++ b/test/075_set_eo/11_scrambled_1.in @@ -1,4 +1,4 @@ -UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=FKbGIDSXBJAU=A 2047 // 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/075_set_eo/11_scrambled_1.out b/test/075_set_eo/11_scrambled_1.out index 843df0d..8786173 100644 --- a/test/075_set_eo/11_scrambled_1.out +++ b/test/075_set_eo/11_scrambled_1.out @@ -1 +1 @@ -UL1 BL1 BR1 DL1 FR1 DF1 DB1 DR1 UB1 FL1 UF1 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=VabWYTSXRZQU=A diff --git a/test/075_set_eo/set_eo_tests.c b/test/075_set_eo/set_eo_tests.c index 0c67e87..2e05e9a 100644 --- a/test/075_set_eo/set_eo_tests.c +++ b/test/075_set_eo/set_eo_tests.c @@ -11,7 +11,7 @@ void run(void) { int64_t eo; fgets(str, STRLENMAX, stdin); - cube = readcube("H48", str); + cube = readcube(str); fgets(str, STRLENMAX, stdin); eo = atoi(str); @@ -30,7 +30,7 @@ void run(void) { fprintf(stderr, "\n"); printf("Setting EO resulted in inconsistent cube\n"); } else { - writecube("H48", cube, NISSY_SIZE_H48, str); + writecube(cube, NISSY_SIZE_CUBE, str); printf("%s\n", str); } } -- cgit v1.3