git-subtree-dir: third_party/protozero git-subtree-split: d5d8debf1b17c6bb652395957b76cde7787e5377
23 lines
474 B
C++
23 lines
474 B
C++
|
|
#include <testcase.hpp>
|
|
#include "testcase.pb.h"
|
|
|
|
int main(int c, char *argv[]) {
|
|
TestRepeatedPackedInt32::Test msg;
|
|
|
|
write_to_file(msg, "data-empty.pbf");
|
|
|
|
msg.add_i(17L);
|
|
write_to_file(msg, "data-one.pbf");
|
|
|
|
msg.add_i(200);
|
|
msg.add_i(0L);
|
|
msg.add_i(1L);
|
|
msg.add_i(std::numeric_limits<int32_t>::max());
|
|
msg.add_i(-200);
|
|
msg.add_i(-1L);
|
|
msg.add_i(std::numeric_limits<int32_t>::min());
|
|
write_to_file(msg, "data-many.pbf");
|
|
}
|
|
|