summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/unittests/testCompileTimeFormatter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testCompileTimeFormatter.cpp b/libadhocutil/unittests/testCompileTimeFormatter.cpp
index d1afb68..2c5bedf 100644
--- a/libadhocutil/unittests/testCompileTimeFormatter.cpp
+++ b/libadhocutil/unittests/testCompileTimeFormatter.cpp
@@ -142,6 +142,13 @@ BOOST_AUTO_TEST_CASE ( customBracketted )
BOOST_REQUIRE_EQUAL(this->str(), "custom -( expr )-");
}
+typedef Formatter<formatStringCustom> TestFormat;
+BOOST_AUTO_TEST_CASE ( typedefFormat )
+{
+ TestFormat::write(*this, "expr");
+ BOOST_REQUIRE_EQUAL(this->str(), "custom -( expr )-");
+}
+
extern constexpr const char * formatStringLong = " ";
BOOST_AUTO_TEST_CASE ( longFormatString )
{