diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-31 09:47:57 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-31 09:47:57 +0200 |
| commit | 992de12cc081e7dde16c3c231f83bfa77c67825a (patch) | |
| tree | af0b2d51b1a6cd92ae2cd6a32d581d752ddce8ea /test | |
| parent | e2b154c40acaac4e7a7b3e379ada0404519c3750 (diff) | |
| download | nissy-core-992de12cc081e7dde16c3c231f83bfa77c67825a.tar.gz nissy-core-992de12cc081e7dde16c3c231f83bfa77c67825a.zip | |
Added move sequence comparison function
Diffstat (limited to '')
| -rw-r--r-- | test/033_inverse_move/inverse_move_tests.c | 4 | ||||
| -rw-r--r-- | test/062_transform_move/transform_move_tests.c | 4 | ||||
| -rw-r--r-- | test/140_appendsolution/appendsolution_tests.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/033_inverse_move/inverse_move_tests.c b/test/033_inverse_move/inverse_move_tests.c index e9bad0c..5453f83 100644 --- a/test/033_inverse_move/inverse_move_tests.c +++ b/test/033_inverse_move/inverse_move_tests.c | |||
| @@ -3,11 +3,11 @@ | |||
| 3 | extern char *movestr[]; | 3 | extern char *movestr[]; |
| 4 | 4 | ||
| 5 | int64_t readmoves(const char *, size_t n, size_t m, | 5 | int64_t readmoves(const char *, size_t n, size_t m, |
| 6 | uint64_t *, uint64_t *, uint8_t [n], uint8_t [m]); | 6 | size_t *, size_t *, uint8_t [n], uint8_t [m]); |
| 7 | uint8_t inverse_move(uint8_t); | 7 | uint8_t inverse_move(uint8_t); |
| 8 | 8 | ||
| 9 | void run(void) { | 9 | void run(void) { |
| 10 | uint64_t inv, nor; | 10 | size_t inv, nor; |
| 11 | int64_t tot; | 11 | int64_t tot; |
| 12 | uint8_t moves[2]; | 12 | uint8_t moves[2]; |
| 13 | 13 | ||
diff --git a/test/062_transform_move/transform_move_tests.c b/test/062_transform_move/transform_move_tests.c index 17cb0b6..218c6a1 100644 --- a/test/062_transform_move/transform_move_tests.c +++ b/test/062_transform_move/transform_move_tests.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | cube_t applytrans(cube_t, const char *); | 5 | cube_t applytrans(cube_t, const char *); |
| 6 | uint8_t transform_move(uint8_t, uint8_t); | 6 | uint8_t transform_move(uint8_t, uint8_t); |
| 7 | int64_t readmoves(const char *, size_t n, size_t m, | 7 | int64_t readmoves(const char *, size_t n, size_t m, |
| 8 | uint64_t *, uint64_t *, uint8_t [n], uint8_t [m]); | 8 | size_t *, size_t *, uint8_t [n], uint8_t [m]); |
| 9 | oriented_cube_t move_extended(oriented_cube_t, uint8_t); | 9 | oriented_cube_t move_extended(oriented_cube_t, uint8_t); |
| 10 | oriented_cube_t applymoves(oriented_cube_t, const char *); | 10 | oriented_cube_t applymoves(oriented_cube_t, const char *); |
| 11 | uint8_t readtrans(const char[static NISSY_SIZE_TRANSFORMATION]); | 11 | uint8_t readtrans(const char[static NISSY_SIZE_TRANSFORMATION]); |
| @@ -13,7 +13,7 @@ uint8_t readtrans(const char[static NISSY_SIZE_TRANSFORMATION]); | |||
| 13 | void run(void) { | 13 | void run(void) { |
| 14 | char movestr[STRLENMAX], transtr[STRLENMAX], cubestr[STRLENMAX]; | 14 | char movestr[STRLENMAX], transtr[STRLENMAX], cubestr[STRLENMAX]; |
| 15 | uint8_t t, moves[MAXMOVES]; | 15 | uint8_t t, moves[MAXMOVES]; |
| 16 | uint64_t i, n, ninv; | 16 | size_t i, n, ninv; |
| 17 | int64_t tot; | 17 | int64_t tot; |
| 18 | oriented_cube_t cube; | 18 | oriented_cube_t cube; |
| 19 | 19 | ||
diff --git a/test/140_appendsolution/appendsolution_tests.c b/test/140_appendsolution/appendsolution_tests.c index c9cd81f..d4c2a1f 100644 --- a/test/140_appendsolution/appendsolution_tests.c +++ b/test/140_appendsolution/appendsolution_tests.c | |||
| @@ -14,7 +14,7 @@ See below for the output format. | |||
| 14 | 14 | ||
| 15 | uint8_t readtrans(const char [NISSY_SIZE_TRANSFORMATION]); | 15 | uint8_t readtrans(const char [NISSY_SIZE_TRANSFORMATION]); |
| 16 | int64_t readmoves(const char *, size_t n, size_t m, | 16 | int64_t readmoves(const char *, size_t n, size_t m, |
| 17 | uint64_t *, uint64_t *, uint8_t [n], uint8_t [m]); | 17 | size_t *, size_t *, uint8_t [n], uint8_t [m]); |
| 18 | void solution_moves_reset(solution_moves_t [static 1]); | 18 | void solution_moves_reset(solution_moves_t [static 1]); |
| 19 | bool solution_list_init(solution_list_t [static 1], size_t n, char [n]); | 19 | bool solution_list_init(solution_list_t [static 1], size_t n, char [n]); |
| 20 | int64_t appendsolution(const solution_moves_t [static 1], | 20 | int64_t appendsolution(const solution_moves_t [static 1], |
| @@ -23,7 +23,7 @@ int64_t appendsolution(const solution_moves_t [static 1], | |||
| 23 | void run(void) { | 23 | void run(void) { |
| 24 | int i, ntrans; | 24 | int i, ntrans; |
| 25 | int64_t tot; | 25 | int64_t tot; |
| 26 | uint64_t nm, np; | 26 | size_t nm, np; |
| 27 | char str[STRLENMAX], buf[STRLENMAX]; | 27 | char str[STRLENMAX], buf[STRLENMAX]; |
| 28 | solution_moves_t moves; | 28 | solution_moves_t moves; |
| 29 | solution_settings_t settings; | 29 | solution_settings_t settings; |
