Skip to content

Commit 11567ac

Browse files
author
mikhail_beris
committed
Added more checks, this time for applying the transformation to the message destination.
1 parent 3375ab7 commit 11567ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libs/network/test/message_transform_test.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ BOOST_AUTO_TEST_CASE ( message_transform_toupper ) {
1717
BOOST_CHECK_EQUAL ( source(msg), "me" );
1818
msg << transform(to_upper_, source_);
1919
BOOST_CHECK_EQUAL ( source(msg), "ME" );
20+
msg << destination("you");
21+
BOOST_CHECK_EQUAL ( destination(msg), "you");
22+
msg << transform(to_upper_, destination_);
23+
BOOST_CHECK_EQUAL ( destination(msg), "YOU");
2024
};
2125

2226
BOOST_AUTO_TEST_CASE ( message_transform_tolower ) {
@@ -27,5 +31,9 @@ BOOST_AUTO_TEST_CASE ( message_transform_tolower ) {
2731
BOOST_CHECK_EQUAL ( source(msg), "ME" );
2832
msg << transform(to_lower_, source_);
2933
BOOST_CHECK_EQUAL ( source(msg), "me" );
34+
msg << destination("YOU");
35+
BOOST_CHECK_EQUAL ( destination(msg), "YOU" );
36+
msg << transform(to_lower_, destination_);
37+
BOOST_CHECK_EQUAL ( destination(msg), "you" );
3038
};
3139

0 commit comments

Comments
 (0)