MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / TEST

Function TEST

source/test/ordered_set_test.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace Star;
6
7TEST(OrderedSet, Insert) {
8 OrderedSet<int> map{5, 4};
9 map.insert(3);
10 map.insert(2);
11 map.insert(1);
12
13 EXPECT_EQ(map.values(), List<int>({5, 4, 3, 2, 1}));
14}
15
16TEST(OrderedSet, AssignClear) {
17 OrderedHashSet<int> map1{1, 2, 3};

Callers

nothing calls this directly

Calls 9

addBackMethod · 0.80
insertMethod · 0.45
valuesMethod · 0.45
clearMethod · 0.45
addMethod · 0.45
replaceMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected