Add static asserts

This commit is contained in:
Simon Brand
2017-12-13 11:34:33 +00:00
parent 6c73b8113f
commit e589ae4321
2 changed files with 1392 additions and 1380 deletions

View File

@@ -283,12 +283,10 @@ TEST_CASE("Monadic operations", "[monadic]") {
tl::optional<int> o1 = 42;
REQUIRE(*o1.conjunction(42.0) == 42.0);
REQUIRE(*o1.conjunction(std::string{"hello"}) == std::string{"hello"});
REQUIRE(!o1.conjunction(tl::nullopt));
tl::optional<int> o2;
REQUIRE(!o2.conjunction(42.0));
REQUIRE(!o2.conjunction(std::string{"hello"}));
REQUIRE(!o2.conjunction(tl::nullopt));
}
SECTION("map_or") {

File diff suppressed because it is too large Load Diff