Skip to content

Commit 1aa7099

Browse files
authored
Merge pull request #2763 from matwey/i586-2
Use 1/4 step for testing arange
2 parents 9c18ab6 + 6028519 commit 1aa7099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_xbuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ namespace xt
159159
ASSERT_EQ(m_assigned(10), 15.f);
160160
ASSERT_EQ(m_assigned(3), 11.5f);
161161

162-
auto l3 = arange<float>(0, 1, 0.3f);
162+
auto l3 = arange<float>(0, 0.99f, 0.25f);
163163
decltype(l3)::shape_type expected_shape_2 = {4};
164164
ASSERT_EQ(l3.shape(), expected_shape_2);
165165
ASSERT_EQ(l3[{0}], 0.f);
166-
ASSERT_EQ(3.f * 0.3f, l3[{3}]);
166+
ASSERT_EQ(0.25f * 3.f, l3[{3}]);
167167

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

0 commit comments

Comments
 (0)