diff options
Diffstat (limited to 'src/test/spanish_patience_test.cpp')
| -rw-r--r-- | src/test/spanish_patience_test.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/test/spanish_patience_test.cpp b/src/test/spanish_patience_test.cpp index 4168193..8973a53 100644 --- a/src/test/spanish_patience_test.cpp +++ b/src/test/spanish_patience_test.cpp @@ -8,8 +8,21 @@ typedef test_helper th; +const static std::string path = "resources/spanish_patience/"; const static std::string type = "simple-spanish-patience"; -TEST(SpanishPatience, SPTestName) { - EXPECT_TRUE(th::is_solvable("SPTestName", type)); +TEST(SpanishPatience, SimpleSolvable) { + EXPECT_TRUE(th::is_solvable(path + "SimpleSolvable.json", type)); +} + +TEST(SpanishPatience, ComplexSolvable) { + EXPECT_TRUE(th::is_solvable(path + "ComplexSolvable.json", type)); +} + +TEST(SpanishPatience, SimpleUnsolvable) { + EXPECT_FALSE(th::is_solvable(path + "SimpleUnsolvable.json", type)); +} + +TEST(SpanishPatience, ComplexUnsolvable) { + EXPECT_FALSE(th::is_solvable(path + "ComplexUnsolvable.json", type)); } |
