diff options
Diffstat (limited to 'test/032_countmoves')
| -rw-r--r-- | test/032_countmoves/00_empty.in | 1 | ||||
| -rw-r--r-- | test/032_countmoves/00_empty.out | 1 | ||||
| -rw-r--r-- | test/032_countmoves/01_U.in | 1 | ||||
| -rw-r--r-- | test/032_countmoves/01_U.out | 1 | ||||
| -rw-r--r-- | test/032_countmoves/02_Fw3.in | 1 | ||||
| -rw-r--r-- | test/032_countmoves/02_Fw3.out | 1 | ||||
| -rw-r--r-- | test/032_countmoves/03_S2.in | 1 | ||||
| -rw-r--r-- | test/032_countmoves/03_S2.out | 1 | ||||
| -rw-r--r-- | test/032_countmoves/04_y3.in | 1 | ||||
| -rw-r--r-- | test/032_countmoves/04_y3.out | 1 | ||||
| -rw-r--r-- | test/032_countmoves/countmoves_tests.c | 11 |
11 files changed, 21 insertions, 0 deletions
diff --git a/test/032_countmoves/00_empty.in b/test/032_countmoves/00_empty.in new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/032_countmoves/00_empty.in | |||
| @@ -0,0 +1 @@ | |||
diff --git a/test/032_countmoves/00_empty.out b/test/032_countmoves/00_empty.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/032_countmoves/00_empty.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/test/032_countmoves/01_U.in b/test/032_countmoves/01_U.in new file mode 100644 index 0000000..765140b --- /dev/null +++ b/test/032_countmoves/01_U.in | |||
| @@ -0,0 +1 @@ | |||
| U | |||
diff --git a/test/032_countmoves/01_U.out b/test/032_countmoves/01_U.out new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test/032_countmoves/01_U.out | |||
| @@ -0,0 +1 @@ | |||
| 1 | |||
diff --git a/test/032_countmoves/02_Fw3.in b/test/032_countmoves/02_Fw3.in new file mode 100644 index 0000000..699e64c --- /dev/null +++ b/test/032_countmoves/02_Fw3.in | |||
| @@ -0,0 +1 @@ | |||
| Fw' | |||
diff --git a/test/032_countmoves/02_Fw3.out b/test/032_countmoves/02_Fw3.out new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/test/032_countmoves/02_Fw3.out | |||
| @@ -0,0 +1 @@ | |||
| 1 | |||
diff --git a/test/032_countmoves/03_S2.in b/test/032_countmoves/03_S2.in new file mode 100644 index 0000000..778c8ff --- /dev/null +++ b/test/032_countmoves/03_S2.in | |||
| @@ -0,0 +1 @@ | |||
| S2 | |||
diff --git a/test/032_countmoves/03_S2.out b/test/032_countmoves/03_S2.out new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/test/032_countmoves/03_S2.out | |||
| @@ -0,0 +1 @@ | |||
| 2 | |||
diff --git a/test/032_countmoves/04_y3.in b/test/032_countmoves/04_y3.in new file mode 100644 index 0000000..b536014 --- /dev/null +++ b/test/032_countmoves/04_y3.in | |||
| @@ -0,0 +1 @@ | |||
| y' | |||
diff --git a/test/032_countmoves/04_y3.out b/test/032_countmoves/04_y3.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/032_countmoves/04_y3.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
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 | } | ||
