Replace random val in companion object with top level val
This commit is contained in:
committed by
Pavel Punegov
parent
17b7bbce8c
commit
2f1f32bbf4
@@ -566,12 +566,10 @@ class DefaultRandomSmokeTest : RandomSmokeTest() {
|
||||
override val subject: Random get() = Random
|
||||
}
|
||||
|
||||
class SeededRandomSmokeTest : RandomSmokeTest() {
|
||||
override val subject: Random get() = staticSubject
|
||||
private val seededRandomSmokeTestSubject = Random(Random.nextInt().also { println("Seed: $it") })
|
||||
|
||||
companion object {
|
||||
val staticSubject = Random(Random.nextInt().also { println("Seed: $it") })
|
||||
}
|
||||
class SeededRandomSmokeTest : RandomSmokeTest() {
|
||||
override val subject: Random get() = seededRandomSmokeTestSubject
|
||||
|
||||
@Test
|
||||
fun sameIntSeed() {
|
||||
|
||||
Reference in New Issue
Block a user