diff options
Diffstat (limited to 'test/140_appendsolution/appendsolution_tests.c')
| -rw-r--r-- | test/140_appendsolution/appendsolution_tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/140_appendsolution/appendsolution_tests.c b/test/140_appendsolution/appendsolution_tests.c index 9f9e9f4..3f4fb15 100644 --- a/test/140_appendsolution/appendsolution_tests.c +++ b/test/140_appendsolution/appendsolution_tests.c | |||
| @@ -39,7 +39,7 @@ void run(void) { | |||
| 39 | .unniss = false, | 39 | .unniss = false, |
| 40 | .maxmoves = 20, | 40 | .maxmoves = 20, |
| 41 | .maxsolutions = 100, | 41 | .maxsolutions = 100, |
| 42 | .optimal = -1, | 42 | .optimal = 0, |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | fgets(str, STRLENMAX, stdin); | 45 | fgets(str, STRLENMAX, stdin); |
| @@ -48,8 +48,8 @@ void run(void) { | |||
| 48 | printf("Test error reading moves\n"); | 48 | printf("Test error reading moves\n"); |
| 49 | return; | 49 | return; |
| 50 | } | 50 | } |
| 51 | moves.nmoves = nm; | 51 | moves.nmoves = (uint8_t)nm; |
| 52 | moves.npremoves = np; | 52 | moves.npremoves = (uint8_t)np; |
| 53 | fgets(str, STRLENMAX, stdin); | 53 | fgets(str, STRLENMAX, stdin); |
| 54 | settings.unniss = (bool)atoi(str); | 54 | settings.unniss = (bool)atoi(str); |
| 55 | 55 | ||
| @@ -64,7 +64,7 @@ void run(void) { | |||
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| 66 | fgets(str, STRLENMAX, stdin); | 66 | fgets(str, STRLENMAX, stdin); |
| 67 | settings.orientation = atoi(str); | 67 | settings.orientation = (uint8_t)atoi(str); |
| 68 | 68 | ||
| 69 | appendsolution(&moves, nnt, tmask, &settings, &list); | 69 | appendsolution(&moves, nnt, tmask, &settings, &list); |
| 70 | 70 | ||
