MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / testSortedVector

Function testSortedVector

src/common/classes/misc/class_test.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void testSortedVector()
55{
56 printf("Test Firebird::SortedVector: ");
57 SortedVector<int, 100> v;
58 int i;
59 for (i = 0; i < 100; i++)
60 v.add(99 - i);
61 for (i = 0; i < 50; i++)
62 v.remove(0);
63 bool passed = true;
64 for (i = 50; i < 100; i++)
65 if (v[i - 50] != i)
66 passed = false;
67 printf(passed ? "PASSED\n" : "FAILED\n");
68}
69
70const int BITMAP_ITEMS = 1000000;
71

Callers 1

mainFunction · 0.85

Calls 2

addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected