1 #include <sdbusplus/utility/tuple_to_array.hpp>
2 
3 #include <gtest/gtest.h>
4 
5 TEST(TupleToArray, Test3Chars)
6 {
7     std::array<char, 3> a{'a', 'b', 'c'};
8     auto t = std::make_tuple('a', 'b', 'c');
9 
10     ASSERT_EQ(a, sdbusplus::utility::tuple_to_array(std::move(t)));
11 }
12 
13 TEST(TupleToArray, Test4Ints)
14 {
15     std::array<int, 4> b{1, 2, 3, 4};
16     auto t2 = std::make_tuple(1, 2, 3, 4);
17 
18     ASSERT_EQ(b, sdbusplus::utility::tuple_to_array(std::move(t2)));
19 }
20