diff options
| author | thecharlesblake | 2018-04-04 11:04:56 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-04-04 11:04:56 +0100 |
| commit | 56dfa21d26fd51827f37cf42289c97639b44d306 (patch) | |
| tree | 74da1568b823ba368d4688df6835d4429ac217ad /src/test/deal_parser_test.cpp | |
| parent | Merge pull request #47 from thecharlesblake/re-add-schema (diff) | |
| download | metasol-56dfa21d26fd51827f37cf42289c97639b44d306.tar.gz metasol-56dfa21d26fd51827f37cf42289c97639b44d306.zip | |
Add deal parser tests
Diffstat (limited to 'src/test/deal_parser_test.cpp')
| -rw-r--r-- | src/test/deal_parser_test.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/deal_parser_test.cpp b/src/test/deal_parser_test.cpp new file mode 100644 index 0000000..77a33ff --- /dev/null +++ b/src/test/deal_parser_test.cpp @@ -0,0 +1,29 @@ +// +// Created by thecharlesblake on 1/11/18. +// + +#include <gtest/gtest.h> + +#include "test_helper.h" +#include "../main/game/game_state.h" +#include "../main/game/global_cache.h" + +typedef sol_rules::build_policy pol; + +TEST(FoundationsDominance, SameSuit) { + test_helper::run_foundations_dominance_test(pol::SAME_SUIT, { + "AC","2C","3C","4C","AH","2H","3H","4H","AS","2S","3S","4S","AD", + "2D","3D","4D"}); +} + +TEST(FoundationsDominance, RedBlack) { + test_helper::run_foundations_dominance_test(pol::RED_BLACK, { + "AC","2C","AH","2H","AS","3H","2S","AD","3C","4H","3S","2D","4C", + "4S","3D","4D"}); +} + +TEST(FoundationsDominance, AnySuit) { + test_helper::run_foundations_dominance_test(pol::ANY_SUIT, { + "AC","2C","AH","2H","AS","2S","AD","3C","3H","3S","2D","4C","4H", + "4S","3D","4D"}); +}
\ No newline at end of file |
