Commit bdcd2da4 authored by Dominik Charousset's avatar Dominik Charousset

Fix to_string unit test on Raspbian, close #534

parent c6ec9d99
...@@ -28,7 +28,8 @@ using namespace std; ...@@ -28,7 +28,8 @@ using namespace std;
using namespace caf; using namespace caf;
CAF_TEST(buffer) { CAF_TEST(buffer) {
std::vector<char> buf; // Use `signed char` explicitly to make sure all compilers agree.
std::vector<signed char> buf;
CAF_CHECK_EQUAL(deep_to_string(buf), "[]"); CAF_CHECK_EQUAL(deep_to_string(buf), "[]");
CAF_CHECK_EQUAL(deep_to_string(meta::hex_formatted(), buf), "00"); CAF_CHECK_EQUAL(deep_to_string(meta::hex_formatted(), buf), "00");
buf.push_back(-1); buf.push_back(-1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment