diff options
| author | Charlie Blake | 2017-12-28 10:10:46 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-28 10:10:46 +0000 |
| commit | c6275f508b1ff142a1085ebda8ae9276ea7611c4 (patch) | |
| tree | 26b9855cf4a9ec808dae99b378fbbcfa7af4315f /src/test/black_hole_test.cpp | |
| parent | Merge pull request #25 from thecharlesblake/docs (diff) | |
| parent | Added fc tests - currently intract. (diff) | |
| download | metasol-c6275f508b1ff142a1085ebda8ae9276ea7611c4.tar.gz metasol-c6275f508b1ff142a1085ebda8ae9276ea7611c4.zip | |
Merge pull request #26 from thecharlesblake/deal-description-and-test
Deal description and test
Diffstat (limited to 'src/test/black_hole_test.cpp')
| -rw-r--r-- | src/test/black_hole_test.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/black_hole_test.cpp b/src/test/black_hole_test.cpp new file mode 100644 index 0000000..89ee50a --- /dev/null +++ b/src/test/black_hole_test.cpp @@ -0,0 +1,28 @@ +// +// Created by thecharlesblake on 10/4/17. +// + +#include <gtest/gtest.h> + +#include "test_helper.h" + +typedef test_helper th; + +const static std::string path = "resources/black_hole/"; +const static std::string type = "simple-black-hole"; + +TEST(BlackHole, SimpleSolvable) { + EXPECT_TRUE(th::is_solvable(path + "SimpleSolvable.json", type)); +} + +TEST(BlackHole, ComplexSolvable) { + EXPECT_TRUE(th::is_solvable(path + "ComplexSolvable.json", type)); +} + +TEST(BlackHole, SimpleUnsolvable) { + EXPECT_FALSE(th::is_solvable(path + "SimpleUnsolvable.json", type)); +} + +TEST(BlackHole, ComplexUnsolvable) { + EXPECT_FALSE(th::is_solvable(path + "ComplexUnsolvable.json", type)); +} |
