diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-18 16:15:42 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-18 16:15:42 +0200 |
| commit | 9fd47f33ff267b5430cf926b8257c75ac9f15380 (patch) | |
| tree | 9fe4d6c17402bb524b2de951740ca3c56909de03 /test/140_appendsolution/appendsolution_tests.c | |
| parent | b9d617f3bfe9ac92718f995059b602c019d68c1d (diff) | |
| download | nissy-core-9fd47f33ff267b5430cf926b8257c75ac9f15380.tar.gz nissy-core-9fd47f33ff267b5430cf926b8257c75ac9f15380.zip | |
Fix test
Diffstat (limited to 'test/140_appendsolution/appendsolution_tests.c')
| -rw-r--r-- | test/140_appendsolution/appendsolution_tests.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/140_appendsolution/appendsolution_tests.c b/test/140_appendsolution/appendsolution_tests.c index e1b7e98..c9cd81f 100644 --- a/test/140_appendsolution/appendsolution_tests.c +++ b/test/140_appendsolution/appendsolution_tests.c | |||
| @@ -18,8 +18,7 @@ int64_t readmoves(const char *, size_t n, size_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], |
| 21 | const solution_settings_t [static 1], solution_list_t [static 1], bool, | 21 | const solution_settings_t [static 1], solution_list_t [static 1]); |
| 22 | const char *); | ||
| 23 | 22 | ||
| 24 | void run(void) { | 23 | void run(void) { |
| 25 | int i, ntrans; | 24 | int i, ntrans; |
| @@ -59,7 +58,7 @@ void run(void) { | |||
| 59 | fgets(str, STRLENMAX, stdin); | 58 | fgets(str, STRLENMAX, stdin); |
| 60 | settings.orientation = atoi(str); | 59 | settings.orientation = atoi(str); |
| 61 | 60 | ||
| 62 | appendsolution(&moves, &settings, &list, false, "Test"); | 61 | appendsolution(&moves, &settings, &list); |
| 63 | 62 | ||
| 64 | printf("%s", list.buf); | 63 | printf("%s", list.buf); |
| 65 | printf("Number of solutions: %" PRIu64 "\n", list.nsols); | 64 | printf("Number of solutions: %" PRIu64 "\n", list.nsols); |
