File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,17 @@ BOOST_AUTO_TEST_CASE(streams_serializedata_xor)
80
80
81
81
// Degenerate case
82
82
83
- key += ' \x00 ' ,' \x00 ' ;
83
+ key += ' \x00 ' ;
84
+ key += ' \x00 ' ;
84
85
ds.Xor (key);
85
86
BOOST_CHECK_EQUAL (
86
87
std::string (expected_xor.begin (), expected_xor.end ()),
87
88
std::string (ds.begin (), ds.end ()));
88
89
89
- in += ' \x0f ' ,' \xf0 ' ;
90
- expected_xor += ' \xf0 ' ,' \x0f ' ;
90
+ in += ' \x0f ' ;
91
+ in += ' \xf0 ' ;
92
+ expected_xor += ' \xf0 ' ;
93
+ expected_xor += ' \x0f ' ;
91
94
92
95
// Single character key
93
96
@@ -105,14 +108,17 @@ BOOST_AUTO_TEST_CASE(streams_serializedata_xor)
105
108
106
109
in.clear ();
107
110
expected_xor.clear ();
108
- in += ' \xf0 ' ,' \x0f ' ;
109
- expected_xor += ' \x0f ' ,' \x00 ' ;
111
+ in += ' \xf0 ' ;
112
+ in += ' \x0f ' ;
113
+ expected_xor += ' \x0f ' ;
114
+ expected_xor += ' \x00 ' ;
110
115
111
116
ds.clear ();
112
117
ds.insert (ds.begin (), in.begin (), in.end ());
113
118
114
119
key.clear ();
115
- key += ' \xff ' ,' \x0f ' ;
120
+ key += ' \xff ' ;
121
+ key += ' \x0f ' ;
116
122
117
123
ds.Xor (key);
118
124
BOOST_CHECK_EQUAL (
You can’t perform that action at this time.
0 commit comments