strongdef: add trivial instantiation test
This commit is contained in:
parent
bb1652b8f3
commit
4599b11197
@ -445,6 +445,7 @@ TEST_BIN = \
|
|||||||
test/sha2 \
|
test/sha2 \
|
||||||
test/signal \
|
test/signal \
|
||||||
test/stringid \
|
test/stringid \
|
||||||
|
test/strongdef \
|
||||||
test/tuple \
|
test/tuple \
|
||||||
test/uri \
|
test/uri \
|
||||||
test/vector \
|
test/vector \
|
||||||
|
18
test/strongdef.cpp
Normal file
18
test/strongdef.cpp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#include "tap.hpp"
|
||||||
|
#include "strongdef.hpp"
|
||||||
|
|
||||||
|
using util::strongdef;
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
util::TAP::logger tap;
|
||||||
|
|
||||||
|
// These tests are less about functional testing, and more about link testing.
|
||||||
|
strongdef<unsigned> fortytwo (42u);
|
||||||
|
tap.expect_eq (fortytwo.data, 42u, "raw data equality");
|
||||||
|
tap.expect_eq (fortytwo, 42u, "passthrough equality");
|
||||||
|
|
||||||
|
return tap.status ();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user