Skip to content

Commit 0a710a1

Browse files
committed
Add a test for nibbles
1 parent 01a37e5 commit 0a710a1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

MLAPI.Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,5 +411,22 @@ public void TestBits()
411411
Assert.Fail("There is no way to read back the bits");
412412

413413
}
414+
415+
[Test]
416+
public void TestNibble()
417+
{
418+
byte somevalue = 0b1010011;
419+
420+
BitStream outStream = new BitStream();
421+
outStream.WriteNibble(somevalue);
422+
423+
byte[] buffer = outStream.GetBuffer();
424+
425+
BitStream inStream = new BitStream(buffer);
426+
427+
//Assert.That(inStream.ReadNibble(), Is.EqualTo(0b0011));
428+
Assert.Fail("There is no way to read back Nibbles");
429+
430+
}
414431
}
415432
}

0 commit comments

Comments
 (0)