diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/020_io_H48_read_write/io_H48_tests.c | 4 | ||||
| -rw-r--r-- | test/023_io_LST_write/io_LST_tests.c | 4 | ||||
| -rw-r--r-- | test/024_io_LST_read/io_LST_tests.c | 4 | ||||
| -rw-r--r-- | test/030_move/move_tests.c | 4 | ||||
| -rw-r--r-- | test/040_inverse_cube/inverse_tests.c | 4 | ||||
| -rw-r--r-- | test/050_compose/compose_tests.c | 6 | ||||
| -rw-r--r-- | test/060_transform/transform_tests.c | 4 | ||||
| -rw-r--r-- | test/071_coord_eo/coord_eo_tests.c | 2 | ||||
| -rw-r--r-- | test/072_coord_co/coord_co_tests.c | 2 |
9 files changed, 17 insertions, 17 deletions
diff --git a/test/020_io_H48_read_write/io_H48_tests.c b/test/020_io_H48_read_write/io_H48_tests.c index 222e4d4..db471d8 100644 --- a/test/020_io_H48_read_write/io_H48_tests.c +++ b/test/020_io_H48_read_write/io_H48_tests.c | |||
| @@ -9,14 +9,14 @@ int main(void) { | |||
| 9 | while (*aux != '\n') | 9 | while (*aux != '\n') |
| 10 | aux++; | 10 | aux++; |
| 11 | 11 | ||
| 12 | cube = readcube("H48", str); | 12 | cube = cube_read("H48", str); |
| 13 | 13 | ||
| 14 | if (cube_error(cube)) { | 14 | if (cube_error(cube)) { |
| 15 | printf("Error reading cube\n"); | 15 | printf("Error reading cube\n"); |
| 16 | } else if (!cube_solvable(cube)) { | 16 | } else if (!cube_solvable(cube)) { |
| 17 | printf("Cube is not solvable\n"); | 17 | printf("Cube is not solvable\n"); |
| 18 | } else { | 18 | } else { |
| 19 | writecube("H48", cube, str); | 19 | cube_write("H48", cube, str); |
| 20 | printf("%s\n", str); | 20 | printf("%s\n", str); |
| 21 | } | 21 | } |
| 22 | 22 | ||
diff --git a/test/023_io_LST_write/io_LST_tests.c b/test/023_io_LST_write/io_LST_tests.c index 8a3ce22..1fa7531 100644 --- a/test/023_io_LST_write/io_LST_tests.c +++ b/test/023_io_LST_write/io_LST_tests.c | |||
| @@ -9,14 +9,14 @@ int main(void) { | |||
| 9 | while (*aux != '\n') | 9 | while (*aux != '\n') |
| 10 | aux++; | 10 | aux++; |
| 11 | 11 | ||
| 12 | cube = readcube("H48", str); | 12 | cube = cube_read("H48", str); |
| 13 | 13 | ||
| 14 | if (cube_error(cube)) { | 14 | if (cube_error(cube)) { |
| 15 | printf("Error reading cube\n"); | 15 | printf("Error reading cube\n"); |
| 16 | } else if (!cube_solvable(cube)) { | 16 | } else if (!cube_solvable(cube)) { |
| 17 | printf("Cube is not solvable\n"); | 17 | printf("Cube is not solvable\n"); |
| 18 | } else { | 18 | } else { |
| 19 | writecube("LST", cube, str); | 19 | cube_write("LST", cube, str); |
| 20 | printf("%s\n", str); | 20 | printf("%s\n", str); |
| 21 | } | 21 | } |
| 22 | 22 | ||
diff --git a/test/024_io_LST_read/io_LST_tests.c b/test/024_io_LST_read/io_LST_tests.c index 81d4c54..59cf89a 100644 --- a/test/024_io_LST_read/io_LST_tests.c +++ b/test/024_io_LST_read/io_LST_tests.c | |||
| @@ -9,14 +9,14 @@ int main(void) { | |||
| 9 | while (*aux != '\n') | 9 | while (*aux != '\n') |
| 10 | aux++; | 10 | aux++; |
| 11 | 11 | ||
| 12 | cube = readcube("LST", str); | 12 | cube = cube_read("LST", str); |
| 13 | 13 | ||
| 14 | if (cube_error(cube)) { | 14 | if (cube_error(cube)) { |
| 15 | printf("Error reading cube\n"); | 15 | printf("Error reading cube\n"); |
| 16 | } else if (!cube_solvable(cube)) { | 16 | } else if (!cube_solvable(cube)) { |
| 17 | printf("Cube is not solvable\n"); | 17 | printf("Cube is not solvable\n"); |
| 18 | } else { | 18 | } else { |
| 19 | writecube("H48", cube, str); | 19 | cube_write("H48", cube, str); |
| 20 | printf("%s\n", str); | 20 | printf("%s\n", str); |
| 21 | } | 21 | } |
| 22 | 22 | ||
diff --git a/test/030_move/move_tests.c b/test/030_move/move_tests.c index 39458ba..497ac6c 100644 --- a/test/030_move/move_tests.c +++ b/test/030_move/move_tests.c | |||
| @@ -8,7 +8,7 @@ int main(void) { | |||
| 8 | 8 | ||
| 9 | fgets(movestr, STRLENMAX, stdin); | 9 | fgets(movestr, STRLENMAX, stdin); |
| 10 | fgets(cubestr, STRLENMAX, stdin); | 10 | fgets(cubestr, STRLENMAX, stdin); |
| 11 | cube = readcube("H48", cubestr); | 11 | cube = cube_read("H48", cubestr); |
| 12 | 12 | ||
| 13 | cube = applymoves(cube, movestr); | 13 | cube = applymoves(cube, movestr); |
| 14 | 14 | ||
| @@ -17,7 +17,7 @@ int main(void) { | |||
| 17 | } else if (!cube_solvable(cube)) { | 17 | } else if (!cube_solvable(cube)) { |
| 18 | printf("Moved cube is not solvable\n"); | 18 | printf("Moved cube is not solvable\n"); |
| 19 | } else { | 19 | } else { |
| 20 | writecube("H48", cube, cubestr); | 20 | cube_write("H48", cube, cubestr); |
| 21 | printf("%s\n", cubestr); | 21 | printf("%s\n", cubestr); |
| 22 | } | 22 | } |
| 23 | 23 | ||
diff --git a/test/040_inverse_cube/inverse_tests.c b/test/040_inverse_cube/inverse_tests.c index ca7e481..59ce84e 100644 --- a/test/040_inverse_cube/inverse_tests.c +++ b/test/040_inverse_cube/inverse_tests.c | |||
| @@ -5,7 +5,7 @@ int main(void) { | |||
| 5 | cube_t cube, inv; | 5 | cube_t cube, inv; |
| 6 | 6 | ||
| 7 | fgets(str, STRLENMAX, stdin); | 7 | fgets(str, STRLENMAX, stdin); |
| 8 | cube = readcube("H48", str); | 8 | cube = cube_read("H48", str); |
| 9 | inv = cube_inverse(cube); | 9 | inv = cube_inverse(cube); |
| 10 | 10 | ||
| 11 | if (cube_error(inv)) { | 11 | if (cube_error(inv)) { |
| @@ -13,7 +13,7 @@ int main(void) { | |||
| 13 | } else if (!cube_solvable(inv)) { | 13 | } else if (!cube_solvable(inv)) { |
| 14 | printf("Inverted cube is not solvable\n"); | 14 | printf("Inverted cube is not solvable\n"); |
| 15 | } else { | 15 | } else { |
| 16 | writecube("H48", inv, str); | 16 | cube_write("H48", inv, str); |
| 17 | printf("%s\n", str); | 17 | printf("%s\n", str); |
| 18 | } | 18 | } |
| 19 | 19 | ||
diff --git a/test/050_compose/compose_tests.c b/test/050_compose/compose_tests.c index 3bf6c34..5383733 100644 --- a/test/050_compose/compose_tests.c +++ b/test/050_compose/compose_tests.c | |||
| @@ -5,9 +5,9 @@ int main(void) { | |||
| 5 | cube_t c1, c2, c3; | 5 | cube_t c1, c2, c3; |
| 6 | 6 | ||
| 7 | fgets(str, STRLENMAX, stdin); | 7 | fgets(str, STRLENMAX, stdin); |
| 8 | c1 = readcube("H48", str); | 8 | c1 = cube_read("H48", str); |
| 9 | fgets(str, STRLENMAX, stdin); | 9 | fgets(str, STRLENMAX, stdin); |
| 10 | c2 = readcube("H48", str); | 10 | c2 = cube_read("H48", str); |
| 11 | 11 | ||
| 12 | c3 = cube_compose(c1, c2); | 12 | c3 = cube_compose(c1, c2); |
| 13 | 13 | ||
| @@ -16,7 +16,7 @@ int main(void) { | |||
| 16 | } else if (!cube_solvable(c3)) { | 16 | } else if (!cube_solvable(c3)) { |
| 17 | printf("Composed cube is not solvable\n"); | 17 | printf("Composed cube is not solvable\n"); |
| 18 | } else { | 18 | } else { |
| 19 | writecube("H48", c3, str); | 19 | cube_write("H48", c3, str); |
| 20 | printf("%s\n", str); | 20 | printf("%s\n", str); |
| 21 | } | 21 | } |
| 22 | 22 | ||
diff --git a/test/060_transform/transform_tests.c b/test/060_transform/transform_tests.c index 8680a0b..454bc22 100644 --- a/test/060_transform/transform_tests.c +++ b/test/060_transform/transform_tests.c | |||
| @@ -8,7 +8,7 @@ int main(void) { | |||
| 8 | 8 | ||
| 9 | fgets(transtr, STRLENMAX, stdin); | 9 | fgets(transtr, STRLENMAX, stdin); |
| 10 | fgets(cubestr, STRLENMAX, stdin); | 10 | fgets(cubestr, STRLENMAX, stdin); |
| 11 | cube = readcube("H48", cubestr); | 11 | cube = cube_read("H48", cubestr); |
| 12 | 12 | ||
| 13 | cube = applytrans(cube, transtr); | 13 | cube = applytrans(cube, transtr); |
| 14 | 14 | ||
| @@ -17,7 +17,7 @@ int main(void) { | |||
| 17 | } else if (!cube_solvable(cube)) { | 17 | } else if (!cube_solvable(cube)) { |
| 18 | printf("Transformed cube is not solvable\n"); | 18 | printf("Transformed cube is not solvable\n"); |
| 19 | } else { | 19 | } else { |
| 20 | writecube("H48", cube, cubestr); | 20 | cube_write("H48", cube, cubestr); |
| 21 | printf("%s\n", cubestr); | 21 | printf("%s\n", cubestr); |
| 22 | } | 22 | } |
| 23 | 23 | ||
diff --git a/test/071_coord_eo/coord_eo_tests.c b/test/071_coord_eo/coord_eo_tests.c index 5951042..a0b868a 100644 --- a/test/071_coord_eo/coord_eo_tests.c +++ b/test/071_coord_eo/coord_eo_tests.c | |||
| @@ -6,7 +6,7 @@ int main(void) { | |||
| 6 | int64_t result; | 6 | int64_t result; |
| 7 | 7 | ||
| 8 | fgets(str, STRLENMAX, stdin); | 8 | fgets(str, STRLENMAX, stdin); |
| 9 | cube = readcube("H48", str); | 9 | cube = cube_read("H48", str); |
| 10 | 10 | ||
| 11 | result = cube_coord_eo(cube); | 11 | result = cube_coord_eo(cube); |
| 12 | 12 | ||
diff --git a/test/072_coord_co/coord_co_tests.c b/test/072_coord_co/coord_co_tests.c index aa4136b..2924996 100644 --- a/test/072_coord_co/coord_co_tests.c +++ b/test/072_coord_co/coord_co_tests.c | |||
| @@ -6,7 +6,7 @@ int main(void) { | |||
| 6 | int64_t result; | 6 | int64_t result; |
| 7 | 7 | ||
| 8 | fgets(str, STRLENMAX, stdin); | 8 | fgets(str, STRLENMAX, stdin); |
| 9 | cube = readcube("H48", str); | 9 | cube = cube_read("H48", str); |
| 10 | 10 | ||
| 11 | result = cube_coord_co(cube); | 11 | result = cube_coord_co(cube); |
| 12 | 12 | ||
