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

Function test_array

src/core/unit_tests.cpp:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void test_array()
126{
127 memory_globals::init();
128 Allocator &a = default_allocator();
129 {
130 Array<int> v(a);
131
132 ENSURE(array::size(v) == 0);
133 array::push_back(v, 1);
134 ENSURE(array::size(v) == 1);
135 ENSURE(v[0] == 1);
136 }
137 memory_globals::shutdown();
138}
139
140static void test_vector()
141{

Callers

nothing calls this directly

Calls 3

initFunction · 0.70
shutdownFunction · 0.70
sizeFunction · 0.50

Tested by

no test coverage detected