From fb9ae9e41eaf01b3651395fdd450ac1a4743e592 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 10 Nov 2023 14:44:48 +0100 Subject: Big changes to the interface --- test/011_io_SRC_write/01_solved.out | 4 ++-- test/011_io_SRC_write/02_scrambled.out | 4 ++-- test/011_io_SRC_write/io_SRC_tests.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test/011_io_SRC_write') diff --git a/test/011_io_SRC_write/01_solved.out b/test/011_io_SRC_write/01_solved.out index 3853027..3c21bcc 100644 --- a/test/011_io_SRC_write/01_solved.out +++ b/test/011_io_SRC_write/01_solved.out @@ -1,4 +1,4 @@ { - .c = {0, 1, 2, 3, 4, 5, 6, 7}, - .e = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} + .corner = {0, 1, 2, 3, 4, 5, 6, 7}, + .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} } diff --git a/test/011_io_SRC_write/02_scrambled.out b/test/011_io_SRC_write/02_scrambled.out index 44d3d04..b899386 100644 --- a/test/011_io_SRC_write/02_scrambled.out +++ b/test/011_io_SRC_write/02_scrambled.out @@ -1,4 +1,4 @@ { - .c = {38, 32, 37, 68, 67, 2, 71, 1}, - .e = {9, 2, 17, 8, 4, 3, 0, 27, 21, 26, 6, 7} + .corner = {38, 32, 37, 68, 67, 2, 71, 1}, + .edge = {9, 2, 17, 8, 4, 3, 0, 27, 21, 26, 6, 7} } diff --git a/test/011_io_SRC_write/io_SRC_tests.c b/test/011_io_SRC_write/io_SRC_tests.c index dd1bb7c..c2d10f6 100644 --- a/test/011_io_SRC_write/io_SRC_tests.c +++ b/test/011_io_SRC_write/io_SRC_tests.c @@ -17,14 +17,14 @@ int main() { for (c = str; (*c = getchar()) != EOF; c++) ; *c = '\0'; - cube = readcube(H48, str); + cube = readcube("H48", str); if (iserror(cube)) { printf("Error reading cube\n"); } else if (!issolvable(cube)) { printf("Cube is not solvable\n"); } else { - writecube(SRC, cube, str); + writecube("SRC", cube, str); printf("%s\n", str); } -- cgit v1.3