Skip to content

hasSize overload for just taking an integer #42

@JLLeitschuh

Description

@JLLeitschuh

Something that would just make writing test simpler:

/**
 * Matches a collection with a size that is equal to [size].
 */
fun hasSize(size: Int) = has(Collection<Any>::size, equalTo(size))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions