Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add shortcuts for all matchers #283

@jgebal

Description

@jgebal

Each matcher that we currently have in the project should have a direct accessor in the appropriate expectation so that we have ability to use:
ut.expect(1).to_be_between(0,2)
ut.expect(1).not_to_be_between(0,2)
ut.expect(1).not_to_equal(0)
etc.

  • add shortcuts for matchers and negated matchers
  • update expectations documentation with shortcuts
  • change all existing unit tests to use shortcuts, to provide better code coverage
  • add missing unit tests for negated shortucts (looking at the code coverage)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions