From a3c299f29bcd17778c48aedb16f9665fdbf6f6a7 Mon Sep 17 00:00:00 2001 From: Altagos Date: Fri, 5 Sep 2025 10:28:52 +0200 Subject: [PATCH] add prefix to tests Change-Id: xmxnlpnsnyqoyvystwtuxxlnrzqwlxnn --- src/Golomb.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Golomb.zig b/src/Golomb.zig index ea7bfcc..8b7f50f 100644 --- a/src/Golomb.zig +++ b/src/Golomb.zig @@ -187,7 +187,7 @@ fn isPowerOfTwo(value: usize) bool { return (value & (value - 1)) == 0; } -test "encode val = 42, m = 8" { +test "golomb.encode val = 42, m = 8" { const testing = std.testing; var gol = Self{ .m = 8 }; @@ -197,7 +197,7 @@ test "encode val = 42, m = 8" { try testing.expectEqualSlices(u8, &.{50}, &encoded); } -test "decode val = {50}, m = 8" { +test "golomb.decode val = {50}, m = 8" { const testing = std.testing; var gol = Self{ .m = 8 }; @@ -207,7 +207,7 @@ test "decode val = {50}, m = 8" { try testing.expectEqual(42, decoded); } -test "encode + decode val = 1564, m = 457" { +test "golomb.encode + decode val = 1564, m = 457" { const testing = std.testing; var gol = Self{ .m = 457 }; @@ -225,7 +225,7 @@ test "encode + decode val = 1564, m = 457" { try testing.expectEqual(input, decoded); } -test "encode multiple val = { 1564, 42 }, m = 457" { +test "golomb.encode multiple val = { 1564, 42 }, m = 457" { const testing = std.testing; var gol = Self{ .m = 457 }; @@ -238,7 +238,7 @@ test "encode multiple val = { 1564, 42 }, m = 457" { try testing.expectEqualSlices(u8, &.{ 35, 6, 42 }, &encoded); } -test "decode multiple val = { 35, 6, 8 }, m = 457" { +test "golomb.decode multiple val = { 35, 6, 8 }, m = 457" { const testing = std.testing; var gol = Self{ .m = 457 }; -- 2.43.0