blob: e7472f9d31891bbbbdb5d4267e150be7490cbb93 [file] [log] [blame]
Patrick Williams4dbdef72016-07-20 12:36:56 -05001#include <sdbusplus/utility/tuple_to_array.hpp>
2#include <cassert>
3
4int main()
5{
6 std::array<char, 3> a{'a', 'b', 'c'};
7 auto t = std::make_tuple('a', 'b', 'c');
8
9 assert(a == sdbusplus::utility::tuple_to_array(std::move(t)));
10
11 std::array<int, 4> b{1, 2, 3, 4};
12 auto t2 = std::make_tuple(1, 2, 3, 4);
13
14 assert(b == sdbusplus::utility::tuple_to_array(std::move(t2)));
15
16 return 0;
17}