Skip to content

Commit 9f5654f

Browse files
committed
Added another static unit test for create_from_tuple()
1 parent de7cee0 commit 9f5654f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/static_tests/functional/tuple_transform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ TEST_CASE("tuple_helper static") {
4949
#if __cpp_lib_constexpr_algorithms >= 201806L
5050
STATIC_REQUIRE(create_from_tuple<std::array<int, 2>>(std::make_tuple(1, 2), polyfill::identity{}) ==
5151
std::array<int, 2>{1, 2});
52+
STATIC_REQUIRE(create_from_tuple<std::tuple>(std::make_tuple(1, 2), polyfill::identity{}) ==
53+
std::tuple<int, int>{1, 2});
54+
STATIC_REQUIRE(create_from_tuple<std::array>(std::make_tuple(1, 2), polyfill::identity{}) ==
55+
std::array<int, 2>{1, 2});
5256
#endif
5357
#if defined(SQLITE_ORM_FOLD_EXPRESSIONS_SUPPORTED) && (__cpp_lib_constexpr_functional >= 201907L)
5458
STATIC_REQUIRE(recombine_tuple(tuple_maker{}, std::make_tuple(1, 2), polyfill::identity{}, 3) ==

0 commit comments

Comments
 (0)