Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created April 18, 2012 03:52
Show Gist options
  • Save jbclements/2411002 to your computer and use it in GitHub Desktop.
Save jbclements/2411002 to your computer and use it in GitHub Desktop.
shuffled 14
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import org.bukkit.Material;
import org.junit.Test;
public class Testing{
@Test
public void test() {
RectangularPrism r1 = new RectangularPrism(10, 10, 10, 10, 60, 10);
RectangularPrism r2 = new RectangularPrism(40, 40, 40, 10, 60, 10);
RectangularPrism r3 = new RectangularPrism(40, 40, 40, 20, 80, 2010);
SimpleWorld w1 = new TestingWorld(100,100,100);
SimpleWorld w2 = r1.render(w1, Material.DIRT);
assertEquals(true, r2.equals(r1.scale(4)));
assertEquals(true, r3.equals(r2.translate(10, 20, 2000)));
assertEquals(Material.DIRT, w2.getBlockType(10, 60, 10));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment