Skip to content

Commit ae3e11e

Browse files
MAERYOdevcrocod
authored andcommitted
fix: Change calculator decimal separator from comma to period
1 parent ba18b2b commit ae3e11e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kotlin-sdk-test/src/jvmTest/kotlin/io/modelcontextprotocol/kotlin/sdk/integration/kotlin/AbstractToolIntegrationTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ abstract class AbstractToolIntegrationTest : KotlinTestBase() {
289289
}
290290

291291
val pattern = if (precision > 0) "0." + "0".repeat(precision) else "0"
292-
val symbols = DecimalFormatSymbols(Locale.US).apply { decimalSeparator = ',' }
292+
val symbols = DecimalFormatSymbols(Locale.US).apply { decimalSeparator = '.' }
293293
val df = DecimalFormat(pattern, symbols).apply { isGroupingUsed = false }
294294
val formattedResult = df.format(result)
295295

@@ -482,9 +482,9 @@ abstract class AbstractToolIntegrationTest : KotlinTestBase() {
482482
"a" : 5.5,
483483
"b" : 2.0,
484484
"result" : 11.0,
485-
"formattedResult" : "11,000",
485+
"formattedResult" : "11.000",
486486
"precision" : 3,
487-
"tags" : [ ]
487+
"tags" : [ "test", "calculator", "integration" ]
488488
}
489489
""".trimIndent()
490490

@@ -633,7 +633,7 @@ abstract class AbstractToolIntegrationTest : KotlinTestBase() {
633633
"a": 0.0,
634634
"b": 0.0,
635635
"result": 0.0,
636-
"formattedResult": "0,00",
636+
"formattedResult": "0.00",
637637
"precision": 2,
638638
"tags": []
639639
}

0 commit comments

Comments
 (0)