Add a missing instruction, and a testcase
This commit is contained in:
parent
95d769bf89
commit
312176d37f
2 changed files with 12 additions and 178 deletions
|
@ -86,4 +86,13 @@ void main() {
|
|||
// Expect that the file exists
|
||||
expect(file.existsSync(), true);
|
||||
});
|
||||
|
||||
test("Write NULL UUID to NBT", () async {
|
||||
CompoundTag tag = CompoundTag();
|
||||
NbtUtils.writeUUID(tag, "test", NbtUUID.fromUUID(UUID.ZERO));
|
||||
NbtUUID ID = NbtUtils.readUUID(tag, "test");
|
||||
|
||||
expect(ID.MSB, 0);
|
||||
expect(ID.LSB, 0);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue