diff options
Diffstat (limited to 'test/032_countmoves/countmoves_tests.c')
| -rw-r--r-- | test/032_countmoves/countmoves_tests.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/032_countmoves/countmoves_tests.c b/test/032_countmoves/countmoves_tests.c new file mode 100644 index 0000000..b2c9946 --- /dev/null +++ b/test/032_countmoves/countmoves_tests.c | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | int64_t countmoves(const char *); | ||
| 4 | |||
| 5 | void run(void) { | ||
| 6 | char movestr[STRLENMAX]; | ||
| 7 | |||
| 8 | fgets(movestr, STRLENMAX, stdin); | ||
| 9 | |||
| 10 | printf("%" PRId64 "\n", countmoves(movestr)); | ||
| 11 | } | ||
