Commit 7074510b authored by Dominik Charousset's avatar Dominik Charousset

Fix initialization in match unit test

parent e828088f
......@@ -47,6 +47,7 @@ struct fixture {
using array_type = std::array<bool, 4>;
fixture() {
reset();
}
void reset() {
......@@ -99,7 +100,11 @@ struct fixture {
auto first = begin(invoked);
auto last = end(invoked);
auto i = find(first, last, true);
return i != last && count(i, last, true) == 1 ? distance(first, i) : -1;
if (i != last) {
CAF_REQUIRE_EQUAL(count(i, last, true), 1u);
return distance(first, i);
}
return -1;
}
array_type invoked;
......
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