aboutsummaryrefslogtreecommitdiff
path: root/test/011_io_SRC_write
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-10 14:44:48 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-10 14:44:48 +0100
commitfb9ae9e41eaf01b3651395fdd450ac1a4743e592 (patch)
tree8fb29e9b62d40d6407f082f55a7164775154bf78 /test/011_io_SRC_write
parent04c3ee1f5acac47650be8d0ffbf90e238df0d12b (diff)
downloadnissy-core-fb9ae9e41eaf01b3651395fdd450ac1a4743e592.tar.gz
nissy-core-fb9ae9e41eaf01b3651395fdd450ac1a4743e592.zip
Big changes to the interface
Diffstat (limited to 'test/011_io_SRC_write')
-rw-r--r--test/011_io_SRC_write/01_solved.out4
-rw-r--r--test/011_io_SRC_write/02_scrambled.out4
-rw-r--r--test/011_io_SRC_write/io_SRC_tests.c4
3 files changed, 6 insertions, 6 deletions
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 @@
1{ 1{
2 .c = {0, 1, 2, 3, 4, 5, 6, 7}, 2 .corner = {0, 1, 2, 3, 4, 5, 6, 7},
3 .e = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} 3 .edge = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
4} 4}
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 @@
1{ 1{
2 .c = {38, 32, 37, 68, 67, 2, 71, 1}, 2 .corner = {38, 32, 37, 68, 67, 2, 71, 1},
3 .e = {9, 2, 17, 8, 4, 3, 0, 27, 21, 26, 6, 7} 3 .edge = {9, 2, 17, 8, 4, 3, 0, 27, 21, 26, 6, 7}
4} 4}
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() {
17 for (c = str; (*c = getchar()) != EOF; c++) ; 17 for (c = str; (*c = getchar()) != EOF; c++) ;
18 *c = '\0'; 18 *c = '\0';
19 19
20 cube = readcube(H48, str); 20 cube = readcube("H48", str);
21 21
22 if (iserror(cube)) { 22 if (iserror(cube)) {
23 printf("Error reading cube\n"); 23 printf("Error reading cube\n");
24 } else if (!issolvable(cube)) { 24 } else if (!issolvable(cube)) {
25 printf("Cube is not solvable\n"); 25 printf("Cube is not solvable\n");
26 } else { 26 } else {
27 writecube(SRC, cube, str); 27 writecube("SRC", cube, str);
28 printf("%s\n", str); 28 printf("%s\n", str);
29 } 29 }
30 30

Generated with cgit - Back to sebastiano.tronto.net