fpinkotlin icon indicating copy to clipboard operation
fpinkotlin copied to clipboard

Exercises and solutions for my book The Joy of Kotlin

Results 6 fpinkotlin issues
Sort by recently updated
recently updated
newest added

At the current state of the project the build will fail with installed JDK 14 (I use [Adopt Open JDK 14](https://adoptopenjdk.net/releases.html?variant=openjdk14&jvmVariant=hotspot)). This seems to be a *known* [Bug of Gradle](https://github.com/gradle/gradle/issues/10248)....

[Exercise 4.9](https://livebook.manning.com/book/the-joy-of-kotlin/chapter-4/point-5323-282-282-0) I think the problem is that List is limited in size by the range of Int, whereas the test attempts to create a List whose size can be...

The `test com.fpinkotlin.recursion.exercise07.ReverseTes`t points to `com.fpinkotlin.recursion.exercise08.ReverseKt#reverse` and vice-versa

https://github.com/pysaumont/fpinkotlin/blob/d567d767fe8540b3766608730d967a5bf70f0730/fpinkotlin-parent/fpinkotlin-workingwithlaziness-exercises/src/test/kotlin/com/fpinkotlin/workingwithlaziness/exercise28/StreamTest.kt#L17 The test for this exercise may be insufficient because it passes the case where the fibonacci stream produces only zeros. `z + y == x` will always be true...

In the description of how to run a single test you have ``` shell gradle :fpinkotlin-advancedlisthandling-exercises:test --tests com.fpinkotlin.advancedlisthandling.exercise01.ListTest ``` However, when I run this command without making any modifications to...

The solution to add two numbers is incorrect and works purely by accident only because types of both inputs are Int. If one of them is changed to Long, the...