fmt -> hintfmt test

This commit is contained in:
Ben Burdette 2020-06-19 16:46:49 -06:00
parent 397dbe114e
commit 0309488a66

View file

@ -266,6 +266,14 @@ namespace nix {
} }
TEST(hintfmt, fmtToHintfmt) {
auto hint = hintfmt(fmt("the color of this this text is %1%", "not yellow"));
ASSERT_STREQ(hint.str().c_str(), "the color of this this text is not yellow");
}
TEST(hintfmt, tooFewArguments) { TEST(hintfmt, tooFewArguments) {
ASSERT_STREQ( ASSERT_STREQ(