diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-08 14:04:11 +0200 |
| commit | 2edc8c01fba711f4410279b59c784a43cf2dde41 (patch) | |
| tree | 67d6404c4f768ad8b1b4e4916e3b9af9f892a7aa /test/01_io | |
| parent | 9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff) | |
| download | nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip | |
Added write to SRC format
Diffstat (limited to '')
| -rw-r--r-- | test/010_io_H48/00_garbage.in (renamed from test/01_io/00_garbage.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/00_garbage.out (renamed from test/01_io/00_garbage.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/01_solved_oneline.in (renamed from test/01_io/01_solved_oneline.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/01_solved_oneline.out (renamed from test/01_io/01_solved_oneline.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/02_solved_oneline_whitespace.in (renamed from test/01_io/02_solved_oneline_whitespace.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/02_solved_oneline_whitespace.out (renamed from test/01_io/02_solved_oneline_whitespace.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/03_solved_multiline.in (renamed from test/01_io/03_solved_multiline.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/03_solved_multiline.out (renamed from test/01_io/03_solved_multiline.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/04_unsolvable_ep.in (renamed from test/01_io/04_unsolvable_ep.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/04_unsolvable_ep.out (renamed from test/01_io/04_unsolvable_ep.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/05_unsolvable_eo.in (renamed from test/01_io/05_unsolvable_eo.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/05_unsolvable_eo.out (renamed from test/01_io/05_unsolvable_eo.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/06_unsolvable_cp.in (renamed from test/01_io/06_unsolvable_cp.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/06_unsolvable_cp.out (renamed from test/01_io/06_unsolvable_cp.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/07_unsolvable_co.in (renamed from test/01_io/07_unsolvable_co.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/07_unsolvable_co.out (renamed from test/01_io/07_unsolvable_co.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/08_unsolved.in (renamed from test/01_io/08_unsolved.in) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/08_unsolved.out (renamed from test/01_io/08_unsolved.out) | 0 | ||||
| -rw-r--r-- | test/010_io_H48/io_H48_tests.c (renamed from test/01_io/io_tests.c) | 4 |
19 files changed, 2 insertions, 2 deletions
diff --git a/test/01_io/00_garbage.in b/test/010_io_H48/00_garbage.in index 9ac203a..9ac203a 100644 --- a/test/01_io/00_garbage.in +++ b/test/010_io_H48/00_garbage.in | |||
diff --git a/test/01_io/00_garbage.out b/test/010_io_H48/00_garbage.out index 5b9114e..5b9114e 100644 --- a/test/01_io/00_garbage.out +++ b/test/010_io_H48/00_garbage.out | |||
diff --git a/test/01_io/01_solved_oneline.in b/test/010_io_H48/01_solved_oneline.in index dff224d..dff224d 100644 --- a/test/01_io/01_solved_oneline.in +++ b/test/010_io_H48/01_solved_oneline.in | |||
diff --git a/test/01_io/01_solved_oneline.out b/test/010_io_H48/01_solved_oneline.out index dff224d..dff224d 100644 --- a/test/01_io/01_solved_oneline.out +++ b/test/010_io_H48/01_solved_oneline.out | |||
diff --git a/test/01_io/02_solved_oneline_whitespace.in b/test/010_io_H48/02_solved_oneline_whitespace.in index 5d10368..5d10368 100644 --- a/test/01_io/02_solved_oneline_whitespace.in +++ b/test/010_io_H48/02_solved_oneline_whitespace.in | |||
diff --git a/test/01_io/02_solved_oneline_whitespace.out b/test/010_io_H48/02_solved_oneline_whitespace.out index dff224d..dff224d 100644 --- a/test/01_io/02_solved_oneline_whitespace.out +++ b/test/010_io_H48/02_solved_oneline_whitespace.out | |||
diff --git a/test/01_io/03_solved_multiline.in b/test/010_io_H48/03_solved_multiline.in index 9f9652b..9f9652b 100644 --- a/test/01_io/03_solved_multiline.in +++ b/test/010_io_H48/03_solved_multiline.in | |||
diff --git a/test/01_io/03_solved_multiline.out b/test/010_io_H48/03_solved_multiline.out index dff224d..dff224d 100644 --- a/test/01_io/03_solved_multiline.out +++ b/test/010_io_H48/03_solved_multiline.out | |||
diff --git a/test/01_io/04_unsolvable_ep.in b/test/010_io_H48/04_unsolvable_ep.in index 8483962..8483962 100644 --- a/test/01_io/04_unsolvable_ep.in +++ b/test/010_io_H48/04_unsolvable_ep.in | |||
diff --git a/test/01_io/04_unsolvable_ep.out b/test/010_io_H48/04_unsolvable_ep.out index e35c6e4..e35c6e4 100644 --- a/test/01_io/04_unsolvable_ep.out +++ b/test/010_io_H48/04_unsolvable_ep.out | |||
diff --git a/test/01_io/05_unsolvable_eo.in b/test/010_io_H48/05_unsolvable_eo.in index a92089d..a92089d 100644 --- a/test/01_io/05_unsolvable_eo.in +++ b/test/010_io_H48/05_unsolvable_eo.in | |||
diff --git a/test/01_io/05_unsolvable_eo.out b/test/010_io_H48/05_unsolvable_eo.out index e35c6e4..e35c6e4 100644 --- a/test/01_io/05_unsolvable_eo.out +++ b/test/010_io_H48/05_unsolvable_eo.out | |||
diff --git a/test/01_io/06_unsolvable_cp.in b/test/010_io_H48/06_unsolvable_cp.in index 2085dd5..2085dd5 100644 --- a/test/01_io/06_unsolvable_cp.in +++ b/test/010_io_H48/06_unsolvable_cp.in | |||
diff --git a/test/01_io/06_unsolvable_cp.out b/test/010_io_H48/06_unsolvable_cp.out index e35c6e4..e35c6e4 100644 --- a/test/01_io/06_unsolvable_cp.out +++ b/test/010_io_H48/06_unsolvable_cp.out | |||
diff --git a/test/01_io/07_unsolvable_co.in b/test/010_io_H48/07_unsolvable_co.in index abd74e2..abd74e2 100644 --- a/test/01_io/07_unsolvable_co.in +++ b/test/010_io_H48/07_unsolvable_co.in | |||
diff --git a/test/01_io/07_unsolvable_co.out b/test/010_io_H48/07_unsolvable_co.out index e35c6e4..e35c6e4 100644 --- a/test/01_io/07_unsolvable_co.out +++ b/test/010_io_H48/07_unsolvable_co.out | |||
diff --git a/test/01_io/08_unsolved.in b/test/010_io_H48/08_unsolved.in index c992ce7..c992ce7 100644 --- a/test/01_io/08_unsolved.in +++ b/test/010_io_H48/08_unsolved.in | |||
diff --git a/test/01_io/08_unsolved.out b/test/010_io_H48/08_unsolved.out index 8c132cf..8c132cf 100644 --- a/test/01_io/08_unsolved.out +++ b/test/010_io_H48/08_unsolved.out | |||
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 | ||
