Initial Course
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "iterators.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Iterators, ReverseCopy) {
|
||||
EXPECT_EQ(stl_algorithms::reverse_copy({1, 2, 3}), (std::vector<int>{3, 2, 1}));
|
||||
}
|
||||
|
||||
TEST(Iterators, CountGreaterThan) {
|
||||
EXPECT_EQ(stl_algorithms::countGreaterThan({1, 5, 9}, 4), 2);
|
||||
}
|
||||
|
||||
TEST(Iterators, EveryEven) {
|
||||
EXPECT_TRUE(stl_algorithms::everyEven({2, 4, 6}));
|
||||
EXPECT_FALSE(stl_algorithms::everyEven({2, 3}));
|
||||
}
|
||||
Reference in New Issue
Block a user