Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Nov 18, 2024
1 parent 0127239 commit c83631b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/mpo/dayon/common/buffer/MemByteBufferTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ void writeLenAsShort() {

@Test
void copyConstructor() throws IOException {
buffer.fill(33, BEAST);
int size = 42;
buffer.fill(size, BEAST);
try(MemByteBuffer memBuffer = new MemByteBuffer(buffer.getInternal())) {
assertEquals(64, memBuffer.size());
assertEquals(size, memBuffer.size());
assertEquals(buffer.getInternal().length, memBuffer.getInternal().length);
}
}
Expand Down

0 comments on commit c83631b

Please sign in to comment.