Skip to content

Commit eca9b89

Browse files
committed
Move math test to test sources
1 parent 66ab912 commit eca9b89

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

core/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ tasks.register<JavaExec>("testMath") {
6565
group = "verification"
6666
description = "Run EvalEx + SIGMA accuracy tests"
6767
mainClass.set("cn.superiormc.ultimateshop.utils.MathFunctionTest")
68-
classpath = sourceSets["main"].runtimeClasspath
68+
dependsOn(tasks.named("testClasses"))
69+
classpath = sourceSets["test"].runtimeClasspath
6970
}

core/src/main/java/cn/superiormc/ultimateshop/utils/MathFunctionTest.java renamed to core/src/test/java/cn/superiormc/ultimateshop/utils/MathFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
public class MathFunctionTest {
1717

18-
private static final int SIGMA_MAX_ITERATIONS = 100000;
18+
private static final int SIGMA_MAX_ITERATIONS = 100_000;
1919
private static final ExpressionConfiguration config;
2020
private static int passed;
2121
private static int failed;

0 commit comments

Comments
 (0)