MCPcopy Create free account
hub / github.com/crownengine/crown / test_vector

Function test_vector

src/core/unit_tests.cpp:140–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static void test_vector()
141{
142 memory_globals::init();
143 Allocator &a = default_allocator();
144 {
145 Vector<int> v(a);
146
147 ENSURE(vector::size(v) == 0);
148 vector::push_back(v, 1);
149 ENSURE(vector::size(v) == 1);
150 ENSURE(v[0] == 1);
151 }
152 memory_globals::shutdown();
153}
154
155static void test_hash_map()
156{

Callers

nothing calls this directly

Calls 3

initFunction · 0.70
shutdownFunction · 0.70
sizeFunction · 0.50

Tested by

no test coverage detected