Open swalker2m opened 2 years ago
==> X lucuma.core.math.skycalc.ImprovedSkyCalcSuiteJVM.Arbitrary sky calculations 0.057s munit.ComparisonFailException: /Users/swalker/dev/lucuma-core/modules/tests/jvm/src/test/scala/lucuma/core/math/skycalc/ImprovedSkyCalcSuiteJVM.scala:61 values are not the same expected: 257.63675620106716 but was: 257.63675620106835
60: assertEqualsDouble(results.altitudeRaw, javaCalc.getAltitude, 1e-12)
61: assertEqualsDouble(results.azimuthRaw, javaCalc.getAzimuth, 1e-12)
62: assertEqualsDouble(results.parallacticAngleRaw, javaCalc.getParallacticAngle, 1e-12)
Failing seed: Bd1A3jFrhQSwtrGHQgBaI1riv8SHU47QJjIAnJeGjxM=
You can reproduce this failure by adding the following override to your suite:
override val scalaCheckInitialSeed = "Bd1A3jFrhQSwtrGHQgBaI1riv8SHU47QJjIAnJeGjxM="
Falsified after 25 passed tests.
> ARG_0: Place(Dec(-31:59:05.224192),763145224192,1,America/Araguaina)
> ARG_1: 1901-01-01T00:00Z
> ARG_2: Coordinates(20:45:44.102192 -31:59:05.224192)
Changing the delta on line 62 and 63 to 1e-11
instead of 1e-12
fixes the issue. I'm not sure what the precision is we should have, but it seems that either we don't handle the needed precision properly, or the test delta is too high
==> X lucuma.core.math.skycalc.ImprovedSkyCalcSuiteJVM.Arbitrary sky calculations 0.027s munit.ComparisonFailException: /Users/swalker/dev/lucuma-core/modules/tests/jvm/src/test/scala/lucuma/core/math/skycalc/ImprovedSkyCalcSuiteJVM.scala:61 values are not the same expected: 253.83892822548432 but was: 253.83892822548603
60: assertEqualsDouble(results.altitudeRaw, javaCalc.getAltitude, 1e-12)
61: assertEqualsDouble(results.azimuthRaw, javaCalc.getAzimuth, 1e-12)
62: assertEqualsDouble(results.parallacticAngleRaw, javaCalc.getParallacticAngle, 1e-12)
Failing seed: 5ubD978aA4xHy4r0rsjeSPIVEV0JSMFzyGn2EnXWZtM=
You can reproduce this failure by adding the following override to your suite:
override val scalaCheckInitialSeed = "5ubD978aA4xHy4r0rsjeSPIVEV0JSMFzyGn2EnXWZtM="
Falsified after 5 passed tests.
> ARG_0: Place(Dec(+00:00:00.000000),938482303035,1607,America/Indiana/Vincennes)
> ARG_1: 1901-01-01T00:00Z
> ARG_2: Coordinates(00:00:00.000000 +00:00:00.000000)