diff options
author | Pavel Janík <Pavel@Janik.cz> | 2014-12-06 22:49:07 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2014-12-06 22:49:07 +0100 |
commit | a26bf478ea54d28ceccdb7ad91c6d8d92f5680be (patch) | |
tree | e92838aeba30d1a23204ab1c0f4014b17640392c /src/test/util_tests.cpp | |
parent | 83b81f6c8a88874d1e732525f43407f0576574c3 (diff) |
Add a new test for FormatParagraph (string longer than the default width).
Diffstat (limited to 'src/test/util_tests.cpp')
-rw-r--r-- | src/test/util_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 10f77e3a5b..feea140351 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -340,6 +340,7 @@ BOOST_AUTO_TEST_CASE(test_FormatParagraph) BOOST_CHECK_EQUAL(FormatParagraph("test test", 4, 0), "test\ntest"); BOOST_CHECK_EQUAL(FormatParagraph("testerde test ", 4, 0), "testerde\ntest"); BOOST_CHECK_EQUAL(FormatParagraph("test test", 4, 4), "test\n test"); + BOOST_CHECK_EQUAL(FormatParagraph("This is a very long test string. This is a second sentence in the very long test string."), "This is a very long test string. This is a second sentence in the very long\ntest string."); } BOOST_AUTO_TEST_CASE(test_FormatSubVersion) |