libcruft-util/test/typeidx.cpp

17 lines
494 B
C++
Raw Normal View History

#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 ();
}