Skip to content

Commit 4d74034

Browse files
authored
Updated kotlin (#8)
1 parent 2d91e01 commit 4d74034

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("multiplatform") version "1.5.30"
2+
kotlin("multiplatform") version "1.8.0"
33
id("maven-publish")
44
id("signing")
55
}
@@ -84,7 +84,9 @@ kotlin {
8484
js(BOTH) {
8585
browser {
8686
commonWebpackConfig {
87-
cssSupport.enabled = true
87+
cssSupport {
88+
enabled = true
89+
}
8890
}
8991
}
9092
nodejs()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/commonTest/kotlin/com/github/murzagalin/evaluator/integration/DoubleValuesTests.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ class DoubleValuesTests {
2828
fun expressions() {
2929
assertEquals(3 * 23.toDouble().pow(3.2), evaluator.evaluateDouble("23^3.2*3"))
3030
}
31+
32+
@Test
33+
fun complex_expression() {
34+
assertEquals(
35+
2728.0,
36+
evaluator.evaluateDouble("(0.341 * 8000.0) / (1 - (1 + 0.341) ^ -84)"),
37+
absoluteTolerance = 0.000001
38+
)
39+
}
3140
}

0 commit comments

Comments
 (0)