mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-05 23:36:06 +00:00
Implement new profiling system, begin work on structures.
This commit is contained in:
17
src/test/java/MaxMinTest.java
Normal file
17
src/test/java/MaxMinTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import com.dfsek.terra.MaxMin;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class MaxMinTest {
|
||||
@Test
|
||||
public void iterator() {
|
||||
MaxMin m = new MaxMin(0, 100);
|
||||
int i = 0;
|
||||
for(int mint : m) {
|
||||
assertEquals(i, mint);
|
||||
i++;
|
||||
}
|
||||
assertEquals(100, i);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user