MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test

Function test

tests/basic/test-growable.cpp:126–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void test()
127{
128 Foo foo;
129 foo.double_ = 42.5;
130 foo.unsigned_int_ = 42;
131 auto foo2 = test_growable< Foo2 >( foo );
132 CHECK( foo2.double_, 42.5 );
133 CHECK( foo2.unsigned_int_, 42 );
134 CHECK( foo2.bool_, false );
135
136 foo2.bool_ = true;
137 auto foo3 = test_growable< Foo2 >( foo2 );
138 CHECK( foo3.double_, 42.5 );
139 CHECK( foo3.unsigned_int_, 42 );
140 CHECK( foo3.bool_, true );
141
142 auto foo4 = test_growable< Foo3 >( foo );
143 CHECK( foo4.double_, 42.5 );
144 CHECK( foo4.unsigned_int_, 42 );
145 CHECK( foo4.bool_, true );
146 CHECK( foo4.int_, -52 );
147}
148
149OPENGEODE_TEST( "growable" )

Callers 1

test_growableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected