We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 067bc47 commit 4a149f5Copy full SHA for 4a149f5
test/compile-test.cc
@@ -425,10 +425,20 @@ TEST(compile_time_formatting_test, multibyte_fill) {
425
#if FMT_USE_CONSTEXPR_STRING
426
427
TEST(compile_test, constexpr_format) {
428
- constexpr auto result = []() {
429
- return fmt::format(FMT_COMPILE("{}"), 42) == "42";
430
- }();
431
- EXPECT_TRUE(result);
+ {
+ constexpr auto result = []() {
+ return fmt::format(FMT_COMPILE("{}"), 42) == "42";
+ }();
432
+ EXPECT_TRUE(result);
433
+ }
434
+
435
436
+ // Test with a larger string to avoid small string optimization.
437
438
+ return fmt::format(FMT_COMPILE("{:100}"), ' ') == std::string(100, ' ');
439
440
441
442
}
443
444
#endif // FMT_USE_CONSTEXPR_STRING
0 commit comments