v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
13
source/test/container_test.cpp
Normal file
13
source/test/container_test.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "StarSet.hpp"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace Star;
|
||||
|
||||
TEST(SetTest, All) {
|
||||
Set<int> a = {1, 2, 3, 4};
|
||||
Set<int> b = {2, 4, 5};
|
||||
EXPECT_EQ(a.difference(b), Set<int>({1, 3}));
|
||||
EXPECT_EQ(a.intersection(b), Set<int>({2, 4}));
|
||||
EXPECT_EQ(a.combination(b), Set<int>({1, 2, 3, 4, 5}));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue