osrm-backend/third_party/protozero/test/t/fixed32/testcase.cpp
2020-10-16 10:28:48 +03:00

22 lines
372 B
C++

#include <testcase.hpp>
#include "testcase.pb.h"
int main() {
TestFixed32::Test msg;
msg.set_i(0);
write_to_file(msg, "data-zero.pbf");
msg.set_i(1);
write_to_file(msg, "data-pos.pbf");
msg.set_i(200);
write_to_file(msg, "data-pos200.pbf");
msg.set_i(std::numeric_limits<uint32_t>::max());
write_to_file(msg, "data-max.pbf");
}