Skip to content

Commit 0c8466c

Browse files
author
Siva Chandra Reddy
committed
[libc][NFC] Use more specific comparison macros in LdExpTest.h.
1 parent 04edcc0 commit 0c8466c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/test/src/math/LdExpTest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ class LdExpTestTemplate : public __llvm_libc::testing::Test {
131131
// The result should not be infinity.
132132
x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0);
133133
exp = FPBits::maxExponent + 5;
134-
ASSERT_EQ(isinf(func(x, exp)), 0);
134+
ASSERT_FALSE(FPBits(func(x, exp)).isInf());
135135
// But if the exp is large enough to oversome than the normalization shift,
136136
// then it should result in infinity.
137137
exp = FPBits::maxExponent + 15;
138-
ASSERT_NE(isinf(func(x, exp)), 0);
138+
ASSERT_FP_EQ(func(x, exp), inf);
139139
}
140140
};
141141

0 commit comments

Comments
 (0)