diff --git a/common/unit_test/Test_Utils.cpp b/common/unit_test/Test_Utils.cpp index ec8ec1c0..71ba2f73 100644 --- a/common/unit_test/Test_Utils.cpp +++ b/common/unit_test/Test_Utils.cpp @@ -544,21 +544,11 @@ TEST(IndexSequence, 3Dto5D) { TEST(ToArray, lvalue) { std::array arr{1, 2, 3}; - Kokkos::Array ref_arr{1, 2, 3}; - auto kokkos_arr = KokkosFFT::Impl::to_array(arr); - for (std::size_t i = 0; i < arr.size(); ++i) { - ASSERT_EQ(kokkos_arr[i], ref_arr[i]); - } + ASSERT_EQ(KokkosFFT::Impl::to_array(arr), (Kokkos::Array{1, 2, 3})); } TEST(ToArray, rvalue) { - Kokkos::Array ref_arr{1, 2, 3}; - auto kokkos_arr = KokkosFFT::Impl::to_array(std::array{1, 2, 3}); - for (std::size_t i = 0; i < ref_arr.size(); ++i) { - ASSERT_EQ(kokkos_arr[i], ref_arr[i]); - } - // [TO DO] Need to update Kokkos version for compile time test - // GTEST_SKIP() << "Skipping ToArray::rvalue compile time test"; - // static_assert(KokkosFFT::Impl::to_array(std::array{1, 2}) == - // Kokkos::Array{1, 2}); + GTEST_SKIP() << "Skipping ToArray::rvalue compile time test"; + static_assert(KokkosFFT::Impl::to_array(std::array{1, 2}) == + Kokkos::Array{1, 2}); }