From f63675d062156627dc23aa74d51356a7ab77c914 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 15 Jan 2015 20:06:41 +0100 Subject: Completed basic math operators and fixed their result type * the result type now depends on the `decltype` of the performed operation --- test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test.cc') diff --git a/test.cc b/test.cc index 7f97762..06f0a17 100644 --- a/test.cc +++ b/test.cc @@ -10,8 +10,10 @@ TEST_F(TypeAsValueTest, Value) { } TEST_F(TypeAsValueTest, BasicMath) { - EXPECT_EQ(3, ( tav::add, tav::Int<2>>::type::value )); - EXPECT_EQ(4, ( tav::substract, tav::Int<6>>::type::value )); + EXPECT_EQ(3, ( tav::add, tav::Int<2>>::type::value )); + EXPECT_EQ(4, ( tav::substract, tav::Int<6>>::type::value )); + EXPECT_EQ(42, ( tav::multiply, tav::Int<21>>::type::value )); + EXPECT_EQ(5, ( tav::divide, tav::Int<2>>::type::value )); } int main(int argc, char **argv) { -- cgit v1.2.3