mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Make to_string work with __float128
This commit is contained in:
@@ -1982,6 +1982,10 @@ TEST(format_test, to_string) {
|
||||
|
||||
enum foo : unsigned char { zero };
|
||||
EXPECT_EQ(fmt::to_string(zero), "0");
|
||||
|
||||
#if FMT_USE_FLOAT128
|
||||
EXPECT_EQ(fmt::to_string(__float128(0.42)), "0.42");
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST(format_test, output_iterators) {
|
||||
|
||||
Reference in New Issue
Block a user