mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
tidying up
This commit is contained in:
parent
0309488a66
commit
be4f444175
1 changed files with 6 additions and 5 deletions
|
@ -260,17 +260,18 @@ namespace nix {
|
||||||
TEST(hintfmt, percentStringWithoutArgs) {
|
TEST(hintfmt, percentStringWithoutArgs) {
|
||||||
|
|
||||||
const char *teststr = "this is 100%s correct!";
|
const char *teststr = "this is 100%s correct!";
|
||||||
auto hint = hintfmt(teststr);
|
|
||||||
|
|
||||||
ASSERT_STREQ(hint.str().c_str(), teststr);
|
ASSERT_STREQ(
|
||||||
|
hintfmt(teststr).str().c_str(),
|
||||||
|
teststr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(hintfmt, fmtToHintfmt) {
|
TEST(hintfmt, fmtToHintfmt) {
|
||||||
|
|
||||||
auto hint = hintfmt(fmt("the color of this this text is %1%", "not yellow"));
|
ASSERT_STREQ(
|
||||||
|
hintfmt(fmt("the color of this this text is %1%", "not yellow")).str().c_str(),
|
||||||
ASSERT_STREQ(hint.str().c_str(), "the color of this this text is not yellow");
|
"the color of this this text is not yellow");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue