Skip to content

Commit

Permalink
fix: ToArray tests for Kokkos v.4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 12, 2024
1 parent b431fe2 commit 6560a8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/unit_test/Test_Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,12 @@ TEST(IndexSequence, 3Dto5D) {

TEST(ToArray, lvalue) {
std::array<int, 3> arr{1, 2, 3};
ASSERT_EQ(KokkosFFT::Impl::to_array(arr), (Kokkos::Array{1, 2, 3}));
ASSERT_EQ(KokkosFFT::Impl::to_array(arr), (Kokkos::Array<int, 3>{1, 2, 3}));
}

TEST(ToArray, rvalue) {
ASSERT_EQ(KokkosFFT::Impl::to_array(std::array{1, 2}), (Kokkos::Array{1, 2}));
ASSERT_EQ(KokkosFFT::Impl::to_array(std::array{1, 2}),
(Kokkos::Array<int, 2>{1, 2}));
// [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}) ==
Expand Down

0 comments on commit 6560a8f

Please sign in to comment.