在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Kotlin/kotlin-koans开源软件地址:https://github.com/Kotlin/kotlin-koans开源编程语言:Kotlin 93.5%开源软件介绍:This project is obsolete.the course in the EduTools plugin or online version.For the last version of Koans, checkhttps://github.com/Kotlin/kotlin-koans-edu.The task content can be found atKotlin KoansKotlin Koans Workshop is a series of exercises to get you familiar with the Kotlin Syntax. Each exercise is created as a failing unit test and your job is to make it pass. How to build and run testsWorking with the project using Intellij IDEA:
Here https://www.jetbrains.com/help/idea/gradle.html#gradle_tasks you can read how to run Gradle task from the Gradle toolbar in IntelliJ IDEA. Note that this project isn't intended to be used in Android Studio. If you want to solve koans in Android Studio, check the course in Android Studio with EduTools plugin installed https://github.com/kotlin/kotlin-koans#other-ways-to-solve-koans. Working with the commandlineYou can also build the project and run all tests in the terminal:
But since running all the tests tend to take longer and the output can be cluttered, it's more ideal to run selected tests only:
How to check yourselfThe repository has two branches, How the tasks are organizedYou have 42 tasks to do.
Each task lives in its own function: from You may navigate to the corresponding test automatically when you read the task.
Open the source file with the task and use the action Individual tasks generally require you to change the function In the first example, this means replacing the code fun task0(): String {
return todoTask0()
} with the correct, meaningful code in order to solve the problem and allow the associated unit test to pass, such as: fun task0() = "OK" The Other ways to solve KoansYou can solve the similar tasks using Educational Plugin or in the browser:
The koans tasks for web-demo and educational plugin can be found here: https://github.com/Kotlin/kotlin-koans-edu |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论