浏览代码

This doesn't belong in the main branch

nossr50 11 年之前
父节点
当前提交
97c95c1c49
共有 1 个文件被更改,包括 0 次插入35 次删除
  1. 0 35
      src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java

+ 0 - 35
src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java

@@ -1,35 +0,0 @@
-package com.gmail.nossr50.util.blockmeta;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-
-public class PrimitiveExChunkletStoreTest {
-    byte addresses[][] = new byte[16][16];
-
-    @Before
-    public void populateAddresses() {
-        for (int x = 0; x < 16; x++) {
-            for (int z = 0; z < 16; z++) {
-                addresses[x][z] = PrimitiveExChunkletStore.makeAddressByte(x, z);
-            }
-        }
-    }
-
-    @Test
-    public void addressMakeTest() {
-        assertEquals(addresses[0][0], 0);
-        assertEquals(addresses[15][15], -1);
-    }
-
-    @Test
-    public void addressReverseTest() {
-        for (int x = 0; x < 16; x++) {
-            for (int z = 0; z < 16; z++) {
-                assertEquals(x, PrimitiveExChunkletStore.addressByteX(addresses[x][z]));
-                assertEquals(z, PrimitiveExChunkletStore.addressByteZ(addresses[x][z]));
-            }
-        }
-    }
-}