Fix formating
This commit is contained in:
@@ -32,8 +32,8 @@ BOOST_AUTO_TEST_CASE(io_data)
|
||||
{
|
||||
osrm::storage::io::FileWriter outfile(IO_TMP_FILE,
|
||||
osrm::storage::io::FileWriter::GenerateFingerprint);
|
||||
outfile.WriteElementCount64(data_in.size());
|
||||
outfile.WriteFrom(data_in.data(), data_in.size());
|
||||
outfile.WriteElementCount64(data_in.size());
|
||||
outfile.WriteFrom(data_in.data(), data_in.size());
|
||||
}
|
||||
|
||||
osrm::storage::io::FileReader infile(IO_TMP_FILE,
|
||||
|
||||
@@ -86,17 +86,15 @@ BOOST_AUTO_TEST_CASE(tar_serialize_variable_indexed_data)
|
||||
std::vector<std::vector<unsigned>> offset_data = {
|
||||
{5, 8, 8},
|
||||
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17},
|
||||
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}
|
||||
};
|
||||
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}};
|
||||
std::vector<std::string> char_data = {
|
||||
"HalloFoo",
|
||||
"ABCDEFGHIJKLMNOPQR",
|
||||
"ABCDEFGHIJKLMNOP",
|
||||
"HalloFoo", "ABCDEFGHIJKLMNOPQR", "ABCDEFGHIJKLMNOP",
|
||||
};
|
||||
|
||||
for (const auto i : util::irange<std::size_t>(0, offset_data.size()))
|
||||
{
|
||||
TestIndexedData indexed {offset_data[i].begin(), offset_data[i].end(), char_data[i].begin()};
|
||||
TestIndexedData indexed{
|
||||
offset_data[i].begin(), offset_data[i].end(), char_data[i].begin()};
|
||||
{
|
||||
storage::tar::FileWriter writer(tmp.path,
|
||||
storage::tar::FileWriter::GenerateFingerprint);
|
||||
@@ -107,7 +105,7 @@ BOOST_AUTO_TEST_CASE(tar_serialize_variable_indexed_data)
|
||||
storage::tar::FileReader reader(tmp.path, storage::tar::FileReader::VerifyFingerprint);
|
||||
util::serialization::read(reader, "my_indexed_data", result);
|
||||
|
||||
for(auto j : util::irange<std::size_t>(0, offset_data[i].size() - 1))
|
||||
for (auto j : util::irange<std::size_t>(0, offset_data[i].size() - 1))
|
||||
{
|
||||
BOOST_CHECK_EQUAL(indexed.at(j), result.at(j));
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "util/rectangle.hpp"
|
||||
#include "util/typedefs.hpp"
|
||||
|
||||
#include "mocks/mock_datafacade.hpp"
|
||||
#include "../common/temporary_file.hpp"
|
||||
#include "mocks/mock_datafacade.hpp"
|
||||
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
|
||||
Reference in New Issue
Block a user