commit | 6c13562d23a9c9304537767937d21801723cb838 | [log] [tgz] |
---|---|---|
author | Junxiao Shi <git@mail1.yoursunny.com> | Mon Nov 21 14:30:33 2016 +0000 |
committer | Junxiao Shi <git@mail1.yoursunny.com> | Mon Nov 21 14:30:33 2016 +0000 |
tree | e0352f29848975969068f187ecb0b2c11a92d95d | |
parent | 00dc91423e729b2cc1bc1eb2c027ef1f87158b72 [diff] [blame] |
tools: nfdc help command refs #3780 Change-Id: Ibd0e37bad127a38e582864fadd81afadc74baf48
diff --git a/tests/tools/nfdc/format-helpers.t.cpp b/tests/tools/nfdc/format-helpers.t.cpp index f380544..99f6966 100644 --- a/tests/tools/nfdc/format-helpers.t.cpp +++ b/tests/tools/nfdc/format-helpers.t.cpp
@@ -52,6 +52,14 @@ BOOST_AUTO_TEST_SUITE(Text) +BOOST_AUTO_TEST_CASE(Space) +{ + output_test_stream os; + os << 'A' << text::Spaces{-1} << 'B' << text::Spaces{0} << 'C' << text::Spaces{5} << 'D'; + + BOOST_CHECK(os.is_equal("ABC D")); +} + BOOST_AUTO_TEST_CASE(Sep) { output_test_stream os;