diff options
Diffstat (limited to 'src/usr/testcore/lib/integral.H')
-rw-r--r-- | src/usr/testcore/lib/integral.H | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/usr/testcore/lib/integral.H b/src/usr/testcore/lib/integral.H index 74750582e..bead1c03f 100644 --- a/src/usr/testcore/lib/integral.H +++ b/src/usr/testcore/lib/integral.H @@ -82,6 +82,21 @@ class STLIntegralTest : public CxxTest::TestSuite TS_FAIL("false_type is not false."); } } + + void testTypes() + { + if (!std::is_same<std::true_type, + std::integral_constant<bool, true> >::value) + { + TS_FAIL("true_type and integral_constant<bool, true> are not the same type."); + } + + if (!std::is_same<std::false_type, + std::integral_constant<bool, false> >::value) + { + TS_FAIL("true_type and integral_constant<bool, false> are not the same type."); + } + } }; #endif |