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/031_premove/001_U_solved.in | 2 +- test/031_premove/001_U_solved.out | 2 +- test/031_premove/002_U_scrambled.in | 2 +- test/031_premove/002_U_scrambled.out | 2 +- test/031_premove/003_F3_scrambled.in | 2 +- test/031_premove/003_F3_scrambled.out | 2 +- test/031_premove/premove_tests.c | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/031_premove') diff --git a/test/031_premove/001_U_solved.in b/test/031_premove/001_U_solved.in index 62495cb..3c87da7 100644 --- a/test/031_premove/001_U_solved.in +++ b/test/031_premove/001_U_solved.in @@ -1,2 +1,2 @@ U -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/031_premove/001_U_solved.out b/test/031_premove/001_U_solved.out index 7721ab5..111ba2b 100644 --- a/test/031_premove/001_U_solved.out +++ b/test/031_premove/001_U_solved.out @@ -1 +1 @@ -UL0 UR0 DB0 DF0 UF0 UB0 DL0 DR0 FR0 FL0 BL0 BR0 UFL0 UBR0 DFL0 DBR0 UBL0 UFR0 DFR0 DBL0 +EFCDBAGH=FECDABGHIJKL=A diff --git a/test/031_premove/002_U_scrambled.in b/test/031_premove/002_U_scrambled.in index 423c408..252b09f 100644 --- a/test/031_premove/002_U_scrambled.in +++ b/test/031_premove/002_U_scrambled.in @@ -1,4 +1,4 @@ U -UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=FKbGIDSXBJAU=A // 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/031_premove/002_U_scrambled.out b/test/031_premove/002_U_scrambled.out index b25b400..5d7e0eb 100644 --- a/test/031_premove/002_U_scrambled.out +++ b/test/031_premove/002_U_scrambled.out @@ -1 +1 @@ -UB0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UR0 FL0 UL0 UF1 DFL0 UFL1 DBR1 UFR2 DBL2 DFR0 UBL1 UBR2 +CMLQXGJV=BKbGIDSXEJFQ=A diff --git a/test/031_premove/003_F3_scrambled.in b/test/031_premove/003_F3_scrambled.in index d222a18..4d0547a 100644 --- a/test/031_premove/003_F3_scrambled.in +++ b/test/031_premove/003_F3_scrambled.in @@ -1,4 +1,4 @@ F' -UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 +CILVXGMR=FKbGIDSXBJAU=A // 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/031_premove/003_F3_scrambled.out b/test/031_premove/003_F3_scrambled.out index 9d8d663..96e6485 100644 --- a/test/031_premove/003_F3_scrambled.out +++ b/test/031_premove/003_F3_scrambled.out @@ -1 +1 @@ -UL0 BL0 BR1 DL0 UF1 FR1 DB1 DR1 UB0 DF1 FL1 UR1 DFR1 UFL2 DBR1 UBR2 DBL2 UFR2 DFL0 UBL2 +OULVXQCR=FKbGQYSXBTZU=A diff --git a/test/031_premove/premove_tests.c b/test/031_premove/premove_tests.c index 07631c1..24773cd 100644 --- a/test/031_premove/premove_tests.c +++ b/test/031_premove/premove_tests.c @@ -12,7 +12,7 @@ void run(void) { fgets(movestr, STRLENMAX, stdin); move = readmove(movestr[0]) + readmodifier(movestr[1]); fgets(cubestr, STRLENMAX, stdin); - cube = readcube("H48", cubestr); + cube = readcube(cubestr); cube = premove(cube, move); @@ -21,7 +21,7 @@ void run(void) { } else if (!issolvable(cube)) { printf("Moved cube is not solvable\n"); } else { - writecube("H48", cube, NISSY_SIZE_H48, cubestr); + writecube(cube, NISSY_SIZE_CUBE, cubestr); printf("%s\n", cubestr); } } -- cgit v1.3