dart-lang / dart-lang/test

matchers: rename "predicate" to "satisfies"

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

Description

**Issue by [seaneagan](https://github.com/seaneagan)**
_Originally opened as dart-lang/sdk#11919_

---

expect(5, satisfies((i) => i.isOdd));

reads better than:

expect(5, predicate((i) => i.isOdd));

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the issue. Search the repository for the predicate matcher and its usages, then inspect the related matcher tests; done means the issue's example uses satisfies consistently and the relevant tests cover the renamed matcher.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
testing
Issue type
Refactor
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.