Skip to content

Commit a838c15

Browse files
update test
1 parent b8ec901 commit a838c15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/universal/bytes.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ void from_into() {
104104
std::vector<uint8_t> v = {1, 2, 4, 5, 6, 7, 8, 9, 10};
105105
std::vector<uint8_t> v2 = v;
106106
std::string s = "abcdefg";
107+
// add a couple of null terminators to ensure that they are also moved into payload
108+
s.push_back('\0');
109+
s.push_back('h');
110+
s.push_back('\0');
111+
s.push_back('i');
107112
std::string s2 = s;
108113

109114
Bytes bv(v), bs(s), bv2(std::move(v2)), bs2(std::move(s2));

0 commit comments

Comments
 (0)