Commit 23979bf3 authored by Dominik Charousset's avatar Dominik Charousset

Update unit tests

parent 435b8476
...@@ -261,7 +261,7 @@ CAF_TEST(strings_to_string) { ...@@ -261,7 +261,7 @@ CAF_TEST(strings_to_string) {
CAF_TEST(maps_to_string) { CAF_TEST(maps_to_string) {
map<int, int> m1{{1, 10}, {2, 20}, {3, 30}}; map<int, int> m1{{1, 10}, {2, 20}, {3, 30}};
auto msg1 = make_message(move(m1)); auto msg1 = make_message(move(m1));
CAF_CHECK_EQUAL(to_string(msg1), "([(1, 10), (2, 20), (3, 30)])"); CAF_CHECK_EQUAL(to_string(msg1), "({1 = 10, 2 = 20, 3 = 30})");
} }
CAF_TEST(tuples_to_string) { CAF_TEST(tuples_to_string) {
......
...@@ -233,7 +233,7 @@ CAF_TEST(unary visit) { ...@@ -233,7 +233,7 @@ CAF_TEST(unary visit) {
x = string{"hello world"}; x = string{"hello world"};
CAF_CHECK_EQUAL(visit(stringify, x), "hello world"); CAF_CHECK_EQUAL(visit(stringify, x), "hello world");
x = map_type{{1, 1}, {2, 2}}; x = map_type{{1, 1}, {2, 2}};
CAF_CHECK_EQUAL(visit(stringify, x), "[(1, 1), (2, 2)]"); CAF_CHECK_EQUAL(visit(stringify, x), "{1 = 1, 2 = 2}");
} }
CAF_TEST(binary visit) { CAF_TEST(binary visit) {
...@@ -253,5 +253,5 @@ CAF_TEST(ternary visit) { ...@@ -253,5 +253,5 @@ CAF_TEST(ternary visit) {
x = 42; x = 42;
y = string{"foo"}; y = string{"foo"};
z = map_type{{1, 1}, {2, 2}}; z = map_type{{1, 1}, {2, 2}};
CAF_CHECK_EQUAL(visit(stringify, x, y, z), "42, foo, [(1, 1), (2, 2)]"); CAF_CHECK_EQUAL(visit(stringify, x, y, z), "42, foo, {1 = 1, 2 = 2}");
} }
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