Skip to content

Commit

Permalink
Activates group varint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed Feb 4, 2025
1 parent ec30a31 commit 7a7af61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/base/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_subdirectory(containers)
add_subdirectory(encode)
add_subdirectory(io)
add_subdirectory(maths)
add_subdirectory(memory)
Expand Down
4 changes: 3 additions & 1 deletion test/base/encode/group_varint_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
// //
//----------------------------------------------------------------------------//

#include <cstring>

#include "ozz/base/containers/array.h"
#include "ozz/base/encode/group_varint.h"
#include "ozz/base/gtest_helper.h"
Expand Down Expand Up @@ -147,7 +149,7 @@ TEST(Value, GroupVarint4Stream) {

EXPECT_EQ(ozz::EncodeGV4Stream({in_stream, 4}, buffer).size_bytes(), 46u);
EXPECT_EQ(ozz::DecodeGV4Stream({buffer, 5}, {out_stream, 4}).size_bytes(),
1u);
0u);
EXPECT_EQ(std::memcmp(in_stream, out_stream, 4 * sizeof(uint32_t)), 0);

EXPECT_EQ(ozz::EncodeGV4Stream(in_stream, buffer).size_bytes(), 30u);
Expand Down

0 comments on commit 7a7af61

Please sign in to comment.