mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-01-01 03:12:18 +08:00
* small cleanup in the tests/basictest.cpp
This commit is contained in:
parent
41d9632abc
commit
8f795017cb
@ -69,7 +69,7 @@ template <typename T> std::string fHexAndDec(T v) {
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
char const *round_name(int d) {
|
||||
constexpr std::string_view const round_name(int d) {
|
||||
switch (d) {
|
||||
case FE_UPWARD:
|
||||
return "FE_UPWARD";
|
||||
@ -2313,7 +2313,7 @@ TEST_CASE("integer_times_pow10") {
|
||||
|
||||
for (int mode : {FE_UPWARD, FE_DOWNWARD, FE_TOWARDZERO, FE_TONEAREST}) {
|
||||
fesetround(mode);
|
||||
INFO("fesetround(): " << std::string{round_name(mode)});
|
||||
INFO("fesetround(): " << round_name(mode));
|
||||
|
||||
struct Guard {
|
||||
~Guard() { fesetround(FE_TONEAREST); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user