Initial Course
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "ranges.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Ranges, EvenNumbers) {
|
||||
EXPECT_EQ(cpp20::even_numbers({1, 2, 3, 4, 5}), (std::vector<int>{2, 4}));
|
||||
}
|
||||
|
||||
TEST(Ranges, TakeFirstThree) {
|
||||
EXPECT_EQ(cpp20::take_first_three({9, 8, 7, 6, 5}), (std::vector<int>{9, 8, 7}));
|
||||
}
|
||||
|
||||
TEST(Ranges, JoinStrings) {
|
||||
EXPECT_EQ(cpp20::join_strings({"C", "++", "20"}), "C++20");
|
||||
}
|
||||
Reference in New Issue
Block a user