libcruft-util/test/typeidx.cpp
Danny Robson f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00

17 lines
494 B
C++

#include "../tap.hpp"
#include "../typeidx.hpp"
///////////////////////////////////////////////////////////////////////////////
int
main (int, char**)
{
cruft::TAP::logger tap;
tap.expect_eq (cruft::typeidx<int> (), cruft::typeidx<int> (), "equality for int");
tap.expect_eq (cruft::typeidx<float> (), cruft::typeidx<float> (), "equality for float");
tap.expect_neq (cruft::typeidx<int> (), cruft::typeidx<float> (), "inequality for int/float");
return tap.status ();
}