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

Function TEST

source/test/container_test.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace Star;
6
7TEST(SetTest, All) {
8 Set<int> a = {1, 2, 3, 4};
9 Set<int> b = {2, 4, 5};
10 EXPECT_EQ(a.difference(b), Set<int>({1, 3}));
11 EXPECT_EQ(a.intersection(b), Set<int>({2, 4}));
12 EXPECT_EQ(a.combination(b), Set<int>({1, 2, 3, 4, 5}));
13}

Callers

nothing calls this directly

Calls 3

combinationMethod · 0.80
differenceMethod · 0.45
intersectionMethod · 0.45

Tested by

no test coverage detected