aboutsummaryrefslogtreecommitdiff
path: root/src/test/foundations_dominance_test.cpp
blob: 48134f5d29daac72b7d4bf28737a36d5de3c660c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// 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"});
}

TEST(FoundationsDominance, NoSolutionChange) {
    test_helper::optimisation_validity_test(
            test_helper::optimisation::AUTO_FOUNDATION_MOVES);
}