mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 21:12:52 -08:00
Bugfixes
This commit is contained in:
parent
8c6c4c2630
commit
66766b43c7
9 changed files with 993 additions and 970 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue