Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Sep 13, 2024
1 parent 90840c2 commit dd599b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/CompacSizeUint.zig
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ pub fn decodeReader(r: anytype) !Self {

test "ok_full_flow_for_key_values" {
const values = [_]u64{ 0, 252, 0xffff, 0xffffffff, std.math.maxInt(u64) };
const zeroed_buffer = [9]u8{ 0, 0, 0, 0, 0, 0, 0, 0, 0 };
var buffer = [9]u8{ 0, 0, 0, 0, 0, 0, 0, 0, 0 };
const zeroed_buffer = [_]u8{0} ** 9;
var buffer = [_]u8{0} ** 9;
const allocator = std.testing.allocator;

for (values) |num| {
Expand Down Expand Up @@ -194,8 +194,8 @@ test "ok_full_flow_for_key_values" {

test "ok_full_flow_for_1k_random_values" {
const rand = std.crypto.random;
const zeroed_buffer = [9]u8{ 0, 0, 0, 0, 0, 0, 0, 0, 0 };
var buffer = [9]u8{ 0, 0, 0, 0, 0, 0, 0, 0, 0 };
const zeroed_buffer = [_]u8{0} ** 9;
var buffer = [_]u8{0} ** 9;
const allocator = std.testing.allocator;

for (0..1000) |_| {
Expand Down

0 comments on commit dd599b9

Please sign in to comment.