Migrate to gradle 7.0 and suspend-inline bug

This commit is contained in:
Alexander Nozik 2021-04-10 16:31:08 +03:00
parent acb4052fe4
commit 4abd0bdb6f
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -13,7 +13,7 @@ internal class CommonsDistributionsTest {
fun testNormalDistributionSuspend() = runBlocking {
val distribution = GaussianSampler(7.0, 2.0)
val generator = RandomGenerator.default(1)
val sample = distribution.sample(generator).take(1000).toList().asBuffer()
val sample = distribution.sample(generator).take(1000).toList().toDoubleArray().asBuffer()
Assertions.assertEquals(7.0, Mean.double(sample), 0.2)
}

View File

@ -17,6 +17,7 @@ pluginManagement {
id("ru.mipt.npm.gradle.jvm") version toolsVersion
id("ru.mipt.npm.gradle.publish") version toolsVersion
kotlin("jvm") version kotlinVersion
kotlin("multiplatform") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
}
}