add vector_remove_at

This commit is contained in:
chatlanin
2022-03-21 10:42:52 +03:00
parent 6b124255a0
commit f32a1e49a6
10 changed files with 123 additions and 32 deletions

View File

@@ -2,9 +2,15 @@
#include "container/container.hpp"
TEST(v_multiset, check)
TEST(vector_multiset, check)
{
std::vector<int> v;
hack::container::vector_multiset(v, 1, 2, 3);
ASSERT_EQ(v.at(0), 1);
}
TEST(matches, check)
{
std::vector<int> v { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
ASSERT_EQ(hack::container::matches(v, 2, 5, 4, 12), 3);
}