diff options
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 | ||
