From 17a62b7627551243419d0a85c611eec7e6581e7b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 19 Jan 2015 17:23:29 +0100 Subject: Moved `Odd` helper into math operation header * it may be useful for more than test cases --- test.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test.cc') diff --git a/test.cc b/test.cc index 35126fb..aa98be9 100644 --- a/test.cc +++ b/test.cc @@ -14,9 +14,6 @@ class TypeAsValueTest : public ::testing::Test { }; template using quadruple = tav::Multiply, Element>; -template -using odd = tav::Boolean<(Element::value % 2 == 1)>; - TEST_F(TypeAsValueTest, BasicMath) { // (+ 1 2) EXPECT_EQ(3, ( tav::Add, tav::Int<2>>::value )); @@ -104,7 +101,7 @@ TEST_F(TypeAsValueTest, ListMap) { TEST_F(TypeAsValueTest, ListFilter) { // (filter odd (list 1 2 3)) - EXPECT_TRUE(( std::is_same, tav::Int<3>>::type, tav::Filter, tav::Int<2>, tav::Int<3>>::type>::type>::value )); + EXPECT_TRUE(( std::is_same, tav::Int<3>>::type, tav::Filter, tav::Int<2>, tav::Int<3>>::type>::type>::value )); } TEST_F(TypeAsValueTest, ListReverse) { -- cgit v1.2.3