Skip to content

Commit

Permalink
Merge pull request #29 from HenryRLee/test_data
Browse files Browse the repository at this point in the history
Add csv format test data
  • Loading branch information
HenryRLee authored Mar 11, 2021
2 parents 167d814 + 9b1ca42 commit 362abc7
Show file tree
Hide file tree
Showing 7 changed files with 5,597,952 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Test Data

Each directory has two sets of test data, both in csv format. The last column of each line
represents the rank of the test case, and the other columns are the card input.

In the `string_input_tests.csv` files, the card inputs are using string format, while in the
`id_input_tests.csv` files, the inputs are [Card Id](../cpp/#cardid) format.

For example, if we look at the file `five/string_input_tests.csv`, it has six columns.
The first five columns are the five different cards, and the last column is the rank of the
given five cards.

```bash
card_1,card_2,card_3,card_4,card_5,rank
2C,2D,2H,2S,3C,166
2C,2D,2H,2S,3D,166
2C,2D,2H,2S,3H,166
2C,2D,2H,2S,3S,166
2C,2D,2H,2S,4C,165
2C,2D,2H,2S,4D,165
2C,2D,2H,2S,4H,165
2C,2D,2H,2S,4S,165
2C,2D,2H,2S,5C,164
```

The cards in the first test case are: 2C, 2D, 2H, 2S, and 3C, which ranks at 166.
Loading

0 comments on commit 362abc7

Please sign in to comment.