aboutsummaryrefslogtreecommitdiff
path: root/test/01_io/io_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-08 14:04:11 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-08 14:04:11 +0200
commit2edc8c01fba711f4410279b59c784a43cf2dde41 (patch)
tree67d6404c4f768ad8b1b4e4916e3b9af9f892a7aa /test/01_io/io_tests.c
parent9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff)
downloadnissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz
nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip
Added write to SRC format
Diffstat (limited to '')
-rw-r--r--test/010_io_H48/io_H48_tests.c (renamed from test/01_io/io_tests.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/01_io/io_tests.c b/test/010_io_H48/io_H48_tests.c
index 913ec1d..7c3978e 100644
--- a/test/01_io/io_tests.c
+++ b/test/010_io_H48/io_H48_tests.c
@@ -13,14 +13,14 @@ int main() {
13 for (c = str; (*c = getchar()) != EOF; c++) ; 13 for (c = str; (*c = getchar()) != EOF; c++) ;
14 *c = '\0'; 14 *c = '\0';
15 15
16 cube = readcube(str); 16 cube = readcube(H48, str);
17 17
18 if (iserror(cube)) { 18 if (iserror(cube)) {
19 printf("Error reading cube\n"); 19 printf("Error reading cube\n");
20 } else if (!issolvable(cube)) { 20 } else if (!issolvable(cube)) {
21 printf("Cube is not solvable\n"); 21 printf("Cube is not solvable\n");
22 } else { 22 } else {
23 writecube(cube, str); 23 writecube(H48, cube, str);
24 printf("%s\n", str); 24 printf("%s\n", str);
25 } 25 }
26 26

Generated with cgit - Back to sebastiano.tronto.net