mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Use p2197 format for complex by default
This commit is contained in:
@ -66,9 +66,9 @@ TEST(std_test, thread_id) {
|
||||
}
|
||||
|
||||
TEST(std_test, complex) {
|
||||
EXPECT_EQ(fmt::format("{}", std::complex<double>(1, 2.2)), "(1,2.2)");
|
||||
EXPECT_EQ(fmt::format("{}", std::complex<double>(1, 2.2)), "(1+2.2i)");
|
||||
EXPECT_EQ(fmt::format("{:>20.2f}", std::complex<double>(1, 2.2)),
|
||||
" (1.00,2.20)");
|
||||
" (1.00+2.20i)");
|
||||
}
|
||||
|
||||
#ifdef __cpp_lib_source_location
|
||||
|
Reference in New Issue
Block a user