We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5dadff commit 6a9d253Copy full SHA for 6a9d253
tests/value.cpp
@@ -1,3 +1,4 @@
1
+#include <sstream>
2
#include "doctest.h"
3
#include "msgpack.h"
4
#include "msgpack_sinks.h"
@@ -123,12 +124,18 @@ TEST_SUITE("[VALUE]")
123
124
125
// pack
126
std::vector<char> buf0;
127
+ std::stringstream buf1;
128
auto out0 = sink(buf0);
129
+ auto out1 = sink(buf1);
130
jv1.pack(out0);
131
+ jv1.pack(out1);
132
133
// unpack
134
auto in0 = source(buf0);
135
+ auto in1 = source(buf1);
136
value jv2 = value::unpack_static(in0);
137
+ value jv3 = value::unpack_static(in1);
138
check_niels(jv2);
139
+ check_niels(jv3);
140
}
141
0 commit comments