dart-lang / dart-lang/test

Add isBefore & isAfter matchers for testing Comparable implementations

Open
#2,349 0 comments 1 reaction 0 assignees View on GitHub
package:matcher type-enhancement
Dominant language
Dart
Stars
536
Forks
232
Avg merge
1d 10h
Merged PRs (30d)
10

Description

This avoids issues with overloading the existing `lessThan` `greaterThan` etc matchers which rely on `==` and `<` operators.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing lessThan and greaterThan matchers and the tests covering them. Define the expected behavior for isBefore and isAfter with Comparable implementations, then add coverage showing the new matchers avoid reliance on == and < operators.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.