Skip to content

Commit f2fca72

Browse files
committed
Less replicates for another suite
1 parent 127b328 commit f2fca72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/shared/src/test/scala/spire/math/AlgebraicScalaCheckSuite.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ import MathContext.{DECIMAL128, DECIMAL64}
2727

2828
class AlgebraicScalaCheckSuite extends munit.ScalaCheckSuite {
2929

30+
override def scalaCheckTestParameters =
31+
if (sys.props.get("java.vm.name").contains("Scala Native"))
32+
// Native is stupidly slow for this suite
33+
super.scalaCheckTestParameters.withMinSuccessfulTests(5)
34+
else super.scalaCheckTestParameters
35+
3036
def approximation(approx0: Algebraic, scale: Int, actual: BigDecimal): Unit = {
3137
val error = BigDecimal(10).pow(-scale)
3238
val approx = approx0.toBigDecimal(scale, RoundingMode.HALF_EVEN)

0 commit comments

Comments
 (0)