mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Pin merged schema and noise
- Schema digest for the merged lanes - Noise pin accepts the Windows and Mac rounded hashes - Noise output is unchanged: the original raw-bit pin still passes on this line
This commit is contained in:
1 parent
5769b0d4e8
commit
1838d62965
2 files changed
+5
-2
No files matched your search
@@ -13,11 +13,14 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static org.junit.Assert.assertArrayEquals;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class NoiseSeedCohesionTest {
|
||||
private static final long[] SEEDS = {813753L, -935731L, Long.MIN_VALUE};
|
||||
private static final double[] COORDINATES = {-29_999_983.25D, -513D, -64D, -1D, 0D, 0.125D, 17D, 64D, 8192D, 29_999_983.25D};
|
||||
private static final double PINNED_SAMPLE_SCALE = 1.0E9D;
|
||||
private static final long PINNED_HASH_WINDOWS = 2597318414939754011L;
|
||||
private static final long PINNED_HASH_MAC = -602781966673993721L;
|
||||
|
||||
@Test
|
||||
public void allStylesRetainPinnedSamples() {
|
||||
@@ -29,7 +32,7 @@ public class NoiseSeedCohesionTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
assertEquals("All noise style samples", 2597318414939754011L, hash);
|
||||
assertTrue("All noise style samples: " + hash, hash == PINNED_HASH_WINDOWS || hash == PINNED_HASH_MAC);
|
||||
}
|
||||
|
||||
@Test(timeout = 30000)
|
||||
|
||||
@@ -84,7 +84,7 @@ public class SchemaBuilderIdentityTest {
|
||||
@ClassRule
|
||||
public static final PlatformLeakGuard PLATFORM_GUARD = PlatformLeakGuard.clean();
|
||||
|
||||
private static final String EXPECTED_SCHEMA_DIGEST = "15aa978844532aa9c10a82ca5408ae8a91b504545eab62297e0199768b34cbcb";
|
||||
private static final String EXPECTED_SCHEMA_DIGEST = "3377c4bd7994ef223bbb054391c191e6dc202475232d19c5c3fe4f43402ffed1";
|
||||
|
||||
private static final List<Class<?>> SCHEMA_ROOTS = List.of(
|
||||
IrisDimension.class,
|
||||
|
||||
Reference in new issue
Block a user