Skip to content

Commit a26bf47

Browse files
committed
Add a new test for FormatParagraph (string longer than the default width).
1 parent 83b81f6 commit a26bf47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/util_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ BOOST_AUTO_TEST_CASE(test_FormatParagraph)
340340
BOOST_CHECK_EQUAL(FormatParagraph("test test", 4, 0), "test\ntest");
341341
BOOST_CHECK_EQUAL(FormatParagraph("testerde test ", 4, 0), "testerde\ntest");
342342
BOOST_CHECK_EQUAL(FormatParagraph("test test", 4, 4), "test\n test");
343+
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.");
343344
}
344345

345346
BOOST_AUTO_TEST_CASE(test_FormatSubVersion)

0 commit comments

Comments
 (0)