/
srv
/
osrm
/
osrm-backend
/
unit_tests
/
common
/
/srv/osrm/osrm-backend/unit_tests/common
mkdir
upload
Name
Size
Mode
Actions
range_tools.hpp
1470
0644
edit
dl
rm
temporary_file.hpp
394
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/unit_tests/common/range_tools.hpp
(1470B)
#ifndef UNIT_TESTS_RANGE_TOOLS_HPP #define UNIT_TESTS_RANGE_TOOLS_HPP #include <boost/test/unit_test.hpp> #define REQUIRE_SIZE_RANGE(range, ref) BOOST_REQUIRE_EQUAL((range).size(), ref) #define CHECK_EQUAL_RANGE(range, ...) \ do \ { \ const auto &lhs = range; \ const auto &rhs = {__VA_ARGS__}; \ BOOST_CHECK_EQUAL_COLLECTIONS(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); \ } while (0) #define CHECK_EQUAL_COLLECTIONS(coll_lhs, coll_rhs) \ do \ { \ const auto &lhs = coll_lhs; \ const auto &rhs = coll_rhs; \ BOOST_CHECK_EQUAL_COLLECTIONS(lhs.begin(), lhs.end(), rhs.begin(), rhs.end()); \ } while (0) #endif // UNIT_TESTS_RANGE_TOOLS_HPP
Save
cmd:
run