12 lines
341 B
C++
12 lines
341 B
C++
#include "unordered_containers.hpp"
|
|||
|
|
#include <gtest/gtest.h>
|
||
|
|
|
||
|
|
TEST(UnorderedContainers, FirstUnique) {
|
||
|
|
EXPECT_EQ(stl_containers::first_unique({"a", "b", "a", "c"}), "b");
|
||
|
|
}
|
||
|
|
|
||
|
|
TEST(UnorderedContainers, HasDuplicate) {
|
||
|
|
EXPECT_TRUE(stl_containers::has_duplicate({1, 2, 2}));
|
||
|
|
EXPECT_FALSE(stl_containers::has_duplicate({1, 2, 3}));
|
||
|
|
}
|