reflag more tests
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-09-10 08:54:04 -04:00
parent 38a588712c
commit 797dfc95f6

View File

@ -12,8 +12,7 @@ import java.util.Random;
import org.joml.Vector3d; import org.joml.Vector3d;
import electrosphere.test.annotations.BigDataTest; import electrosphere.test.annotations.UnitTest;
import electrosphere.test.annotations.FastTest;
import electrosphere.util.ds.Octree.OctreeNode; import electrosphere.util.ds.Octree.OctreeNode;
/** /**
@ -24,7 +23,7 @@ public class OctreeTests {
/** /**
* Creates an octree * Creates an octree
*/ */
@FastTest @UnitTest
public void testCreateOctree(){ public void testCreateOctree(){
new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
} }
@ -32,7 +31,7 @@ public class OctreeTests {
/** /**
* Add a single leaf * Add a single leaf
*/ */
@FastTest @UnitTest
public void testAddNode(){ public void testAddNode(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
octree.addLeaf(new Vector3d(1,1,1), 1); octree.addLeaf(new Vector3d(1,1,1), 1);
@ -62,7 +61,7 @@ public class OctreeTests {
/** /**
* Add two leaves in a line * Add two leaves in a line
*/ */
@FastTest @UnitTest
public void testAddTwo(){ public void testAddTwo(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
octree.addLeaf(new Vector3d(1,1,1), 1); octree.addLeaf(new Vector3d(1,1,1), 1);
@ -121,7 +120,7 @@ public class OctreeTests {
/** /**
* Adds a whole bunch of nodes in a line * Adds a whole bunch of nodes in a line
*/ */
@BigDataTest @UnitTest
public void testAddLine(){ public void testAddLine(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
for(int i = 0; i < 31; i++){ for(int i = 0; i < 31; i++){
@ -153,7 +152,7 @@ public class OctreeTests {
/** /**
* Get a single leaf * Get a single leaf
*/ */
@FastTest @UnitTest
public void testGetLeaf(){ public void testGetLeaf(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
octree.addLeaf(new Vector3d(1,1,1), 1); octree.addLeaf(new Vector3d(1,1,1), 1);
@ -185,7 +184,7 @@ public class OctreeTests {
/** /**
* Remove a single leaf * Remove a single leaf
*/ */
@FastTest @UnitTest
public void testRemoveLeaf(){ public void testRemoveLeaf(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
octree.addLeaf(new Vector3d(1,1,1), 1); octree.addLeaf(new Vector3d(1,1,1), 1);
@ -219,7 +218,7 @@ public class OctreeTests {
/** /**
* Remove a leaf from a more complex tree * Remove a leaf from a more complex tree
*/ */
@FastTest @UnitTest
public void testRemoveLeaf2(){ public void testRemoveLeaf2(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(32,32,32));
octree.addLeaf(new Vector3d(1,1,1), 1); octree.addLeaf(new Vector3d(1,1,1), 1);
@ -266,7 +265,7 @@ public class OctreeTests {
/** /**
* Adds lots of (random) points * Adds lots of (random) points
*/ */
@BigDataTest @UnitTest
public void testAddManyPoints(){ public void testAddManyPoints(){
Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(256,256,256)); Octree<Integer> octree = new Octree<Integer>(new Vector3d(0,0,0), new Vector3d(256,256,256));