mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Added a test for long padding.
[SVN r84613]
This commit is contained in:
parent
d09b37d3ef
commit
9092b9277b
@ -107,6 +107,17 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(padding, CharT, char_types)
|
|||||||
BOOST_CHECK(strm_ref.str() == strm_correct.str());
|
BOOST_CHECK(strm_ref.str() == strm_correct.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test for long padding
|
||||||
|
{
|
||||||
|
ostream_type strm_ref;
|
||||||
|
strm_ref << ctx.begin << std::setw(100) << string_ref_type(ctx.abcd) << ctx.end;
|
||||||
|
|
||||||
|
ostream_type strm_correct;
|
||||||
|
strm_correct << ctx.begin << std::setw(100) << ctx.abcd << ctx.end;
|
||||||
|
|
||||||
|
BOOST_CHECK(strm_ref.str() == strm_correct.str());
|
||||||
|
}
|
||||||
|
|
||||||
// Test that short width does not truncate the string
|
// Test that short width does not truncate the string
|
||||||
{
|
{
|
||||||
ostream_type strm_ref;
|
ostream_type strm_ref;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user