From 97c95c1c49ba29af285de4206060464f655300f9 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 12 Jan 2014 14:49:05 -0800 Subject: [PATCH] This doesn't belong in the main branch --- .../PrimitiveExChunkletStoreTest.java | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java diff --git a/src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java b/src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java deleted file mode 100644 index c85f22ba0..000000000 --- a/src/test/java/com/gmail/nossr50/util/blockmeta/PrimitiveExChunkletStoreTest.java +++ /dev/null @@ -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])); - } - } - } -}