35 #include <gtest/gtest.h>
42 for (
size_t i = 0; i <
sizeof(
input); ++i) {
45 for (
size_t i = 0; i <
sizeof(
output); ++i) {
48 for (
size_t i = 0; i <
sizeof(
other); ++i) {
71 for (counter = 0; ret ==
ROSLZ4_OK; ++counter) {
93 for (
size_t i = 0; i <
sizeof(other); ++i) {
94 ASSERT_EQ(input[i], other[i]) <<
"Original and uncompressed data differ at index " << i;
100 unsigned int comp_size =
sizeof(output);
106 unsigned int decomp_size =
sizeof(other);
109 ASSERT_EQ(
sizeof(input), decomp_size);
111 for (
size_t i = 0; i <
sizeof(other); ++i) {
112 ASSERT_EQ(input[i], other[i]) <<
"Original and uncompressed data differ at index " << i;
117 unsigned int comp_size =
sizeof(output);
124 unsigned int decomp_size =
sizeof(other);
130 int main(
int argc,
char **argv) {
131 testing::InitGoogleTest(&argc, argv);
132 return RUN_ALL_TESTS();