Skip to content

Commit c6fd0df

Browse files
Fix incorrect tests
1 parent d96bdd7 commit c6fd0df

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/test/streams_tests.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@ BOOST_AUTO_TEST_CASE(streams_serializedata_xor)
8080

8181
// Degenerate case
8282

83-
key += '\x00','\x00';
83+
key += '\x00';
84+
key += '\x00';
8485
ds.Xor(key);
8586
BOOST_CHECK_EQUAL(
8687
std::string(expected_xor.begin(), expected_xor.end()),
8788
std::string(ds.begin(), ds.end()));
8889

89-
in += '\x0f','\xf0';
90-
expected_xor += '\xf0','\x0f';
90+
in += '\x0f';
91+
in += '\xf0';
92+
expected_xor += '\xf0';
93+
expected_xor += '\x0f';
9194

9295
// Single character key
9396

@@ -105,14 +108,17 @@ BOOST_AUTO_TEST_CASE(streams_serializedata_xor)
105108

106109
in.clear();
107110
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';
110115

111116
ds.clear();
112117
ds.insert(ds.begin(), in.begin(), in.end());
113118

114119
key.clear();
115-
key += '\xff','\x0f';
120+
key += '\xff';
121+
key += '\x0f';
116122

117123
ds.Xor(key);
118124
BOOST_CHECK_EQUAL(

0 commit comments

Comments
 (0)