From c877192cfc7c983c413cbe65589418936431e9fc Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 20 Jan 2016 16:38:54 +1100 Subject: [PATCH] format: add test case for char[] --- test/format.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/format.cpp b/test/format.cpp index bdaa5980..1c14c110 100644 --- a/test/format.cpp +++ b/test/format.cpp @@ -9,8 +9,9 @@ main (void) util::TAP::logger tap; - tap.expect_eq (util::format::render ("identity"), "identity"s, "identity literal"); - tap.expect_eq (util::format::render ("%s", "identity"s), "identity"s, "identity substitution"); + tap.expect_eq (util::format::render ("identity"), "identity"s, "identity literal"); + tap.expect_eq (util::format::render ("%s", "identity"s), "identity"s, "identity string substitution"); + tap.expect_eq (util::format::render ("%s", "identity" ), "identity"s, "identity char[] substitution"); tap.expect_throw ([] (void) { util::format::render ("%s"); }, "missing value"); tap.expect_throw ([] (void) { util::format::render ("%!", 42); }, "invalid specifier");