libcruft-util/test/singleton.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

14 lines
255 B
C++

#include "singleton.hpp"
#include "tap.hpp"
int main ()
{
cruft::TAP::logger tap;
auto obj = cruft::singleton<int>::instantiate (42);
tap.expect_eq (cruft::singleton<int>::get (), 42, "singleton stores value");
return tap.status ();
}