Initial Course
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#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}));
|
||||
}
|
||||
Reference in New Issue
Block a user