Teaches AI agents to write idiomatic Kotlin (data classes, val, scope fns, Kotest) AND to make the right stack choices on JVM: Kotlin 2.3 + JDK 21 + Gradle Kotlin DSL, Ktor for HTTP, kotlinx-coroutines, DJL for ML inference, JavaCV for vision, Koog for AI agent orchestration.
95
95%
Does it follow best practices?
Impact
95%
1.23xAverage score across 10 eval scenarios
Passed
No known issues
The core platform team maintains a Calculator utility class that has been covered by JUnit 5 tests since the early days of the project. The team has decided to modernise the test suite to match current project conventions, and the Calculator tests are next in the queue.
The test file is at src/test/kotlin/com/example/CalculatorTest.kt. It covers the usual arithmetic operations and includes a few edge cases — division by zero, optional square roots, and sign checks. The Calculator implementation class does not need to change; only the test file should be updated.
Write the converted test file to output/CalculatorTest.kt. Every existing test case must be preserved with its original intent intact. Only the test infrastructure and assertion style should change.