has many primitive collection resolver
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#include <utility>
|
||||
|
||||
#include "catch2/catch_test_macros.hpp"
|
||||
|
||||
#include "SessionFixture.hpp"
|
||||
@@ -207,4 +205,8 @@ TEST_CASE_METHOD(SessionFixture, "Test insert object with has many primitive rel
|
||||
auto clist = *colorlist_result;
|
||||
REQUIRE(clist.is_persistent());
|
||||
REQUIRE(clist->colors.size() == 3);
|
||||
std::vector<std::string> expected_colors{"red", "green", "blue"};
|
||||
for (const auto &cstr: clist->colors) {
|
||||
REQUIRE(std::find(expected_colors.begin(), expected_colors.end(), cstr) != expected_colors.end());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user