MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / testFind

Method testFind

test/tests/containers/TestArray.h:312–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 }
311
312 void testFind() {
313
314 Array<int> array1(mAllocator);
315 array1.add(1);
316 array1.add(2);
317 array1.add(3);
318 array1.add(4);
319 array1.add(5);
320
321 rp3d_test(array1.find(1) == array1.begin());
322 rp3d_test(*(array1.find(2)) == 2);
323 rp3d_test(*(array1.find(5)) == 5);
324 }
325
326 void testEquality() {
327

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
findMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected