Add a missing instruction, and a testcase

This commit is contained in:
zontreck 2024-05-23 11:40:16 -07:00
parent 95d769bf89
commit 312176d37f
2 changed files with 12 additions and 178 deletions

View file

@ -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);
});
}