mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Made the test msvc friendly
This commit is contained in:
parent
3551dea887
commit
f6003f0873
@ -122,6 +122,8 @@ void test_comparison()
|
|||||||
VERIFY(half(1.0f) != half(2.0f));
|
VERIFY(half(1.0f) != half(2.0f));
|
||||||
|
|
||||||
// Comparisons with NaNs and infinities.
|
// Comparisons with NaNs and infinities.
|
||||||
|
#if !EIGEN_COMP_MSVC
|
||||||
|
// Visual Studio errors out on divisions by 0
|
||||||
VERIFY(!(half(0.0 / 0.0) == half(0.0 / 0.0)));
|
VERIFY(!(half(0.0 / 0.0) == half(0.0 / 0.0)));
|
||||||
VERIFY(half(0.0 / 0.0) != half(0.0 / 0.0));
|
VERIFY(half(0.0 / 0.0) != half(0.0 / 0.0));
|
||||||
|
|
||||||
@ -132,6 +134,7 @@ void test_comparison()
|
|||||||
|
|
||||||
VERIFY(half(1.0) < half(1.0 / 0.0));
|
VERIFY(half(1.0) < half(1.0 / 0.0));
|
||||||
VERIFY(half(1.0) > half(-1.0 / 0.0));
|
VERIFY(half(1.0) > half(-1.0 / 0.0));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_functions()
|
void test_functions()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user