Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f3028c5c7 | ||
|
|
25405de2e0 |
@@ -44,8 +44,8 @@ set(TEST_SOURCES
|
||||
../../../test/models/model_metas.hpp
|
||||
../../../test/models/types.hpp
|
||||
../../../test/models/user.hpp
|
||||
../../../test/utils/record_printer.cpp
|
||||
../../../test/utils/record_printer.hpp
|
||||
../../../test/utils/RecordPrinter.cpp
|
||||
../../../test/utils/RecordPrinter.hpp
|
||||
)
|
||||
|
||||
set(LIBRARY_TEST_TARGET PostgresTests)
|
||||
|
||||
@@ -321,7 +321,7 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with many-to-m
|
||||
REQUIRE(find_result.is_ok());
|
||||
auto all_ingredients = find_result.release();
|
||||
std::vector<object_ptr<ingredient>> ingredients_repo;
|
||||
std::vector expected_ingredients_sizes {2, 1, 1, 1, 1, 1, 1};
|
||||
std::vector<size_t> expected_ingredients_sizes {2, 1, 1, 1, 1, 1, 1};
|
||||
size_t index {0};
|
||||
for (auto it = all_ingredients.begin(); it != all_ingredients.end(); ++it) {
|
||||
REQUIRE(!it->recipes.empty());
|
||||
@@ -370,7 +370,7 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with many-to-m
|
||||
REQUIRE(find_result.is_ok());
|
||||
auto all_recipes = find_result.release();
|
||||
std::vector<object_ptr<recipe>> recipes_repo;
|
||||
std::vector expected_recipe_sizes {3, 2, 3};
|
||||
std::vector<size_t> expected_recipe_sizes {3, 2, 3};
|
||||
size_t index {0};
|
||||
for (auto it = all_recipes.begin(); it != all_recipes.end(); ++it) {
|
||||
REQUIRE(!it->ingredients.empty());
|
||||
|
||||
Reference in New Issue
Block a user