From 0c16406d3b9fad009dc8c7df66e81e40017e04a8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 15 Feb 2017 15:41:07 +0100 Subject: [PATCH] Create unittest for i18n_noop[s] --- test/test_i18n.cpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/test/test_i18n.cpp b/test/test_i18n.cpp index 6ce50e2..e0470ca 100644 --- a/test/test_i18n.cpp +++ b/test/test_i18n.cpp @@ -147,4 +147,11 @@ BOOST_AUTO_TEST_CASE(Convenience2) BOOST_CHECK_EQUAL("Tea, Earl Grey, hot!", result); } +BOOST_AUTO_TEST_CASE(Noop) +{ + BOOST_CHECK_EQUAL(i18n_noop("Test"), "Test"); + BOOST_CHECK_EQUAL(i18n_noop(" Test "), " Test "); + BOOST_CHECK_EQUAL(i18n_noops("Test") + "2", "Test2"); // this only works if first operand of "+" is string +} + BOOST_AUTO_TEST_SUITE_END() -- 1.7.1