Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inline version for intanceOf alias #1838

Merged
merged 1 commit into from
Nov 9, 2020
Merged

Commits on Nov 9, 2020

  1. Added inline version for intanceOf alias

    Added a version of `instanceOf` that is inlined with a reified generic
    type. This was done to remove the need for `::class` from the caller.
    This type of function is already implemented for `beInstanceOf` and
    `beOfType`. This commit just also adds it to `instanceOf`.
    
    Also updated the tests to test every matcher, even aliases. I don't
    suspect anyone would accidentally change the implementation of the
    aliased functions, but you never know.
    David Stocking committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    1341bf0 View commit details
    Browse the repository at this point in the history