From 6c4bdf37d6bebe3562df9c9b459e6b7036f21dea Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 27 Dec 2017 00:23:07 +0000 Subject: All basic sp tests complete --- src/test/spanish_patience_test.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/test/spanish_patience_test.cpp') 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)); } -- cgit v1.2.1