This commit is contained in:
Anuken 2019-02-14 10:00:17 -05:00
parent 8c6c4c2630
commit 66766b43c7
9 changed files with 993 additions and 970 deletions

View file

@ -4,6 +4,7 @@ import org.junit.jupiter.api.Test;
import java.nio.ByteBuffer;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
public class IOTests{
@ -28,7 +29,7 @@ public class IOTests{
ByteBuffer buffer = ByteBuffer.allocate(500);
TypeIO.writeString(buffer, null);
buffer.position(0);
assertEquals(TypeIO.readString(buffer), null);
assertNull(TypeIO.readString(buffer));
}
}