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/02_move | |
| parent | 9ef630eefb683dcdbe56e96e51b10bf356f20505 (diff) | |
| download | nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.tar.gz nissy-core-2edc8c01fba711f4410279b59c784a43cf2dde41.zip | |
Added write to SRC format
Diffstat (limited to 'test/02_move')
| -rw-r--r-- | test/02_move/move_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/02_move/move_tests.c b/test/02_move/move_tests.c index 333c8ee..054466b 100644 --- a/test/02_move/move_tests.c +++ b/test/02_move/move_tests.c | |||
| @@ -22,7 +22,7 @@ int main() { | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | fgets(str, STRLENMAX, stdin); | 24 | fgets(str, STRLENMAX, stdin); |
| 25 | cube = readcube(str); | 25 | cube = readcube(H48, str); |
| 26 | 26 | ||
| 27 | for (i = 0; i < n; i++) | 27 | for (i = 0; i < n; i++) |
| 28 | cube = move(cube, moves[i]); | 28 | cube = move(cube, moves[i]); |
| @@ -32,7 +32,7 @@ int main() { | |||
| 32 | } else if (!issolvable(cube)) { | 32 | } else if (!issolvable(cube)) { |
| 33 | printf("Moved cube is not solvable\n"); | 33 | printf("Moved cube is not solvable\n"); |
| 34 | } else { | 34 | } else { |
| 35 | writecube(cube, str); | 35 | writecube(H48, cube, str); |
| 36 | printf("%s\n", str); | 36 | printf("%s\n", str); |
| 37 | } | 37 | } |
| 38 | 38 | ||
