aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-19 16:58:12 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-19 16:58:12 -0600
commitbe4f444175568fe48fdaf58387820a75bb16aeaa (patch)
treecb06bf99aa261267ae8a321d4e2c2fc3f588d6ba /src
parent0309488a66ffc4e6672772e37bcec2f92019efc0 (diff)
tidying up
Diffstat (limited to 'src')
-rw-r--r--src/libutil/tests/logging.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libutil/tests/logging.cc b/src/libutil/tests/logging.cc
index 104f3e02c..31e3de697 100644
--- a/src/libutil/tests/logging.cc
+++ b/src/libutil/tests/logging.cc
@@ -260,17 +260,18 @@ namespace nix {
TEST(hintfmt, percentStringWithoutArgs) {
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) {
- 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");
+ ASSERT_STREQ(
+ hintfmt(fmt("the color of this this text is %1%", "not yellow")).str().c_str(),
+ "the color of this this text is not yellow");
}