2015-11-18 14:43:51 +11:00
|
|
|
#include "tap.hpp"
|
|
|
|
#include "strongdef.hpp"
|
|
|
|
|
|
|
|
|
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 ();
|
|
|
|
}
|