Commit 8a8be226 authored by Victor Zverovich's avatar Victor Zverovich

More tests.

parent 1a75ed01
...@@ -265,6 +265,10 @@ TEST(PrintfTest, IgnorePrecisionForNonNumericArg) { ...@@ -265,6 +265,10 @@ TEST(PrintfTest, IgnorePrecisionForNonNumericArg) {
TEST(PrintfTest, DynamicPrecision) { TEST(PrintfTest, DynamicPrecision) {
EXPECT_EQ("00042", str(fmt::sprintf("%.*d", 5, 42))); EXPECT_EQ("00042", str(fmt::sprintf("%.*d", 5, 42)));
EXPECT_THROW_MSG(fmt::sprintf("%.*d", 5.0, 42), FormatError,
"precision is not integer");
EXPECT_THROW_MSG(fmt::sprintf("%.*d"), FormatError,
"argument index is out of range in format");
// TODO: more tests // TODO: more tests
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment