Browse Source

it's vectors all the way down

master
Jessica James 3 years ago
parent
commit
d7b1972aa1
  1. 7
      src/test/split_compilation.cpp

7
src/test/split_compilation.cpp

@ -101,3 +101,10 @@ TYPED_TEST(SplitCompilationTest, empty_list_long) {
EXPECT_TRUE(split_view<std::list>(empty, delim).empty()); EXPECT_TRUE(split_view<std::list>(empty, delim).empty());
EXPECT_TRUE(split_n_view<std::list>(empty, delim, 5).empty()); EXPECT_TRUE(split_n_view<std::list>(empty, delim, 5).empty());
} }
TYPED_TEST(SplitCompilationTest, random_vector) {
std::vector<std::vector<std::vector<TypeParam>>> empty;
std::vector<std::vector<TypeParam>> delim;
std::vector<std::vector<std::vector<std::vector<TypeParam>>>> split_result = split<std::vector, decltype(empty)>(empty, delim);
EXPECT_TRUE(split_result.empty());
}

Loading…
Cancel
Save