Skip to content

Commit

Permalink
Add test with mixed integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Mar 9, 2024
1 parent f83c3ba commit e4a444d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/unit_test/TestViewOutOfBoundsAccess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ TEST(TEST_CATEGORY, append_formatted_multidimensional_index) {
append_formatted_multidimensional_index(buffer, 1, 2, 3);
EXPECT_STREQ(buffer, "I was here[1,2,3]");
}
{
char buffer[64] = "with mixed integer types ";
append_formatted_multidimensional_index(buffer, 1u, -2);
EXPECT_STREQ(buffer, "with mixed integer types [1,-2]");
}
}

#ifdef KOKKOS_ENABLE_DEBUG_BOUNDS_CHECK
Expand Down

0 comments on commit e4a444d

Please sign in to comment.