Skip to content

Commit

Permalink
Merge pull request #2763 from matwey/i586-2
Browse files Browse the repository at this point in the history
Use 1/4 step for testing arange
  • Loading branch information
JohanMabille authored Jan 5, 2024
2 parents 9c18ab6 + 6028519 commit 1aa7099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_xbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ namespace xt
ASSERT_EQ(m_assigned(10), 15.f);
ASSERT_EQ(m_assigned(3), 11.5f);

auto l3 = arange<float>(0, 1, 0.3f);
auto l3 = arange<float>(0, 0.99f, 0.25f);
decltype(l3)::shape_type expected_shape_2 = {4};
ASSERT_EQ(l3.shape(), expected_shape_2);
ASSERT_EQ(l3[{0}], 0.f);
ASSERT_EQ(3.f * 0.3f, l3[{3}]);
ASSERT_EQ(0.25f * 3.f, l3[{3}]);

auto l4 = arange<int>(0, 10, 3);
ASSERT_EQ(l4.shape(), expected_shape_2);
Expand Down

0 comments on commit 1aa7099

Please sign in to comment.