2024-05-29 16:29:08 +10:00
|
|
|
#include <cruft/util/tap.hpp>
|
|
|
|
#include <cruft/util/strongdef.hpp>
|
2015-11-18 14:43:51 +11:00
|
|
|
|
|
|
|
|
2018-06-27 17:58:45 +10:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2015-11-18 14:43:51 +11:00
|
|
|
int
|
|
|
|
main (void)
|
|
|
|
{
|
2018-08-05 14:42:02 +10:00
|
|
|
cruft::TAP::logger tap;
|
2015-11-18 14:43:13 +11:00
|
|
|
|
2015-11-18 14:43:51 +11:00
|
|
|
// These tests are less about functional testing, and more about link testing.
|
2018-08-05 14:42:02 +10:00
|
|
|
cruft::strongdef::index<void,unsigned> fortytwo (42u);
|
2019-03-20 15:39:24 +11:00
|
|
|
tap.expect_eq (*fortytwo, 42u, "raw data equality");
|
|
|
|
tap.expect_eq ( fortytwo, decltype(fortytwo) (42u), "passthrough equality");
|
2015-11-18 14:43:13 +11:00
|
|
|
|
2015-11-18 14:43:51 +11:00
|
|
|
return tap.status ();
|
|
|
|
}
|