[libc-commits] [PATCH] D144597: [libc] Refactor string to float return values
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Feb 22 20:44:56 PST 2023
lntue added inline comments.
================
Comment at: libc/test/src/__support/str_to_float_test.cpp:320
// table.
- ASSERT_FALSE(__llvm_libc::internal::eisel_lemire<long double>(
- 1, 1000, &quadOutputMantissa, &outputExp2));
- ASSERT_FALSE(__llvm_libc::internal::eisel_lemire<long double>(
- 1, -1000, &quadOutputMantissa, &outputExp2));
+ ASSERT_FALSE(
+ __llvm_libc::internal::eisel_lemire<long double>({1, 1000}).error == 0);
----------------
I think `ASSERT_NE( 0, ...)` for these would be better?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144597/new/
https://reviews.llvm.org/D144597
More information about the libc-commits
mailing list