From 56dfa21d26fd51827f37cf42289c97639b44d306 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 4 Apr 2018 11:04:56 +0100 Subject: Add deal parser tests --- src/test/spider_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/spider_test.cpp') diff --git a/src/test/spider_test.cpp b/src/test/spider_test.cpp index 0e21f86..ffca592 100644 --- a/src/test/spider_test.cpp +++ b/src/test/spider_test.cpp @@ -23,6 +23,8 @@ TEST(Spider, SimpleUnsolvable) { EXPECT_FALSE(th::is_solvable(path + "SimpleUnsolvable.json", type)); } +/* Taking too long so removed, at least for now TEST(Spider, ComplexUnsolvable) { EXPECT_FALSE(th::is_solvable(path + "ComplexUnsolvable.json", type)); } +*/ -- cgit v1.2.1 From ec02b3eaf85f222335463b3e2e6790f7e2691047 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 4 Apr 2018 16:00:47 +0100 Subject: Add legal move gen tests and refactor --- src/test/spider_test.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/test/spider_test.cpp (limited to 'src/test/spider_test.cpp') diff --git a/src/test/spider_test.cpp b/src/test/spider_test.cpp deleted file mode 100644 index ffca592..0000000 --- a/src/test/spider_test.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// -// Created by thecharlesblake on 10/4/17. -// - -#include - -#include "test_helper.h" - -typedef test_helper th; - -const static std::string path = "resources/spider/"; -const static std::string type = "simple-spider"; - -TEST(Spider, SimpleSolvable) { - EXPECT_TRUE(th::is_solvable(path + "SimpleSolvable.json", type)); -} - -TEST(Spider, ComplexSolvable) { - EXPECT_TRUE(th::is_solvable(path + "ComplexSolvable.json", type)); -} - -TEST(Spider, SimpleUnsolvable) { - EXPECT_FALSE(th::is_solvable(path + "SimpleUnsolvable.json", type)); -} - -/* Taking too long so removed, at least for now -TEST(Spider, ComplexUnsolvable) { - EXPECT_FALSE(th::is_solvable(path + "ComplexUnsolvable.json", type)); -} -*/ -- cgit v1.2.1