#include #include "../common.h" #include TEST_CASE("Expression/Traits") { struct E { using IsExpression = pfor::expr::tag::Expression; } e; struct F {} f; SECTION("IsExpression") { REQUIRE(pfor::expr::IsExpression::value); REQUIRE_FALSE(pfor::expr::IsExpression::value); REQUIRE(pfor::expr::IsExpression::value); REQUIRE_FALSE(pfor::expr::IsExpression::value); } SECTION("AllExpression") { TEST(REQUIRE, pfor::expr::AllExpression::value); TEST(REQUIRE_FALSE, pfor::expr::AllExpression::value); TEST(REQUIRE_FALSE, pfor::expr::AllExpression::value); TEST(REQUIRE_FALSE, pfor::expr::AllExpression::value); TEST(REQUIRE_FALSE, pfor::expr::AllExpression::value); } SECTION("AnyExpression") { TEST(REQUIRE, pfor::expr::AnyExpression::value); TEST(REQUIRE, pfor::expr::AnyExpression::value); TEST(REQUIRE, pfor::expr::AnyExpression::value); TEST(REQUIRE, pfor::expr::AnyExpression::value); TEST(REQUIRE_FALSE, pfor::expr::AnyExpression::value); } }