Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

[online] Kotlin Koans 5/42 contains incorrect assertion #166

Open
Gatoke opened this issue Nov 7, 2018 · 0 comments
Open

[online] Kotlin Koans 5/42 contains incorrect assertion #166

Gatoke opened this issue Nov 7, 2018 · 0 comments

Comments

@Gatoke
Copy link

Gatoke commented Nov 7, 2018

In online Kotlin Koans https://try.kotlinlang.org at task 5/42 'Lambdas' when I type:

fun containsEven(collection: Collection<Int>): Boolean = collection.any { i -> i/2 == 0 }

I pass the test but I shouldn't.
Note that there is i/2 instead of i%2.

image

DoD
The lambda i -> i/2 == 0 should not be accepted in this task.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant