diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-17 17:39:06 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-17 17:39:30 +0200 |
| commit | e986713657bc5f9880e91ed49dd9b0d0227f048d (patch) | |
| tree | 908d371e60546795c4ca1f9a3b67571b964203c5 /test/080_allowednext | |
| parent | 02ce9adf6a9168ec66c322ce9e5a5cb9fe1e60a5 (diff) | |
| download | nissy-core-e986713657bc5f9880e91ed49dd9b0d0227f048d.tar.gz nissy-core-e986713657bc5f9880e91ed49dd9b0d0227f048d.zip | |
Use callback function to log to stderr
Diffstat (limited to 'test/080_allowednext')
| -rw-r--r-- | test/080_allowednext/allowednext_tests.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/080_allowednext/allowednext_tests.c b/test/080_allowednext/allowednext_tests.c index e531911..644d4c5 100644 --- a/test/080_allowednext/allowednext_tests.c +++ b/test/080_allowednext/allowednext_tests.c | |||
| @@ -11,7 +11,7 @@ static char *moves[] = { | |||
| 11 | "B", "B2", "B'", | 11 | "B", "B2", "B'", |
| 12 | }; | 12 | }; |
| 13 | 13 | ||
| 14 | int main(void) { | 14 | void run(void) { |
| 15 | char movestr[STRLENMAX]; | 15 | char movestr[STRLENMAX]; |
| 16 | uint8_t m[100]; | 16 | uint8_t m[100]; |
| 17 | int n, i, j; | 17 | int n, i, j; |
| @@ -32,6 +32,4 @@ int main(void) { | |||
| 32 | n > 1 ? moves[m[n-2]] : "-", | 32 | n > 1 ? moves[m[n-2]] : "-", |
| 33 | n > 0 ? moves[m[n-1]] : "-"); | 33 | n > 0 ? moves[m[n-1]] : "-"); |
| 34 | printf("%s\n", allowednextmove(m, n) ? "true" : "false"); | 34 | printf("%s\n", allowednextmove(m, n) ? "true" : "false"); |
| 35 | |||
| 36 | return 0; | ||
| 37 | } | 35 | } |
