9 #include <boost/test/unit_test.hpp>
20 std::array<int, 4> vecArb = {0, 2, -5, 4};
21 std::array<bool, 4> vecRes = {
false,
true,
false,
true};
24 std::array<bool, 4> resultVa = va(vecArb);
26 BOOST_CHECK_EQUAL_COLLECTIONS(vecRes.begin(), vecRes.end(), resultVa.begin(),
32 std::array<int, 4> vecArb = {0, 1, -2, 4};
35 std::array<bool, 4> resultFva = fva(vecArb);
36 std::array<bool, 4> expected = {
false,
true,
false,
false};
38 BOOST_CHECK_EQUAL_COLLECTIONS(expected.begin(), expected.end(),
39 resultFva.begin(), resultFva.end());
44 std::array<int, 4> vecArb = {0, 1, -2, 4};
47 std::array<bool, 4> resultFva = fva(vecArb);
48 std::array<bool, 4> expected = {
false,
false,
false,
true};
50 BOOST_CHECK_EQUAL_COLLECTIONS(expected.begin(), expected.end(),
51 resultFva.begin(), resultFva.end());