mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
fmt -> hintfmt test
This commit is contained in:
parent
397dbe114e
commit
0309488a66
1 changed files with 8 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue