13 #include <gtest/gtest.h>
14 #include "../../include/ecl/utilities/singleton.hpp"
33 int value() {
return data; }
36 TestSingleton() : data(32) {}
49 #define TestInstance ecl::utilities::tests::TestSingleton::instance()
55 TEST(Singleton,instantiation) {
56 int i = TestInstance.value();
64 int main(
int argc,
char **argv) {
65 testing::InitGoogleTest(&argc,argv);
66 return RUN_ALL_TESTS();