添加了一些注释和例子

This commit is contained in:
JunDao
2019-05-17 14:10:52 +08:00
parent db9dbc7e76
commit 94fb6502db
7 changed files with 107 additions and 18 deletions

View File

@ -40,7 +40,7 @@ func TestUnpackInt(t *testing.T) {
}
func TestPositionPack(t *testing.T) {
// x (-33554432 to 33554431), y (-2048 to 2047), z (-33554432 to 33554431)
// This test is not good.
for x := -33554432; x < 33554432; x += 55443 {
for y := -2048; y < 2048; y += 48 {