10TEST(fxcrt, ScopedSetInsertion) {
11 std::set<
int> container;
13 ScopedSetInsertion<
int> insertion(&container, 5);
14 EXPECT_THAT(container, testing::UnorderedElementsAreArray({5}));
17 ScopedSetInsertion<
int> insertion2(&container, 6);
18 EXPECT_THAT(container, testing::UnorderedElementsAreArray({5, 6}));
21 EXPECT_THAT(container, testing::UnorderedElementsAreArray({5}));
23 EXPECT_TRUE(container.empty());