We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3e5c2 commit 8f60859Copy full SHA for 8f60859
src/DotNext.Tests/Buffers/Binary/Leb128Tests.cs
@@ -29,4 +29,11 @@ private static void EncodeDecode<T>(ReadOnlySpan<T> values)
29
30
[Fact]
31
public static void EncodeDecodeUInt32() => EncodeDecode([uint.MinValue, uint.MaxValue, 0x80U]);
32
+
33
+ [Fact]
34
+ public static void EncodeDecodeEmptyBuffer()
35
+ {
36
+ False(Leb128<int>.TryGetBytes(42, Span<byte>.Empty, out _));
37
+ False(Leb128<short>.TryParse(ReadOnlySpan<byte>.Empty, out _, out _));
38
+ }
39
}
0 commit comments