You could most likely parametrize the tests so you dont have 10 different test cases instead a single test case with multiple params. Other than that seems cool
https://gist.github.com/catalinsgh/5...lidatortest-kt
Edit:
Why are you testing constants lol? Unit tests are meant to test a single unit of your OWN functionality not if kotlin adheres to keeping a constant a constant :\:
Code:
@Test
fun testConstants() {
assertEquals(1_0_1_3_9_0_4_2_2_3, RandomPermutation.c)
assertEquals(1_6_6_4_5_2_5, RandomPermutation.a)
}