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

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

@Gatoke

Description

@Gatoke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions