matcher icon indicating copy to clipboard operation
matcher copied to clipboard

A declarative API for specifying expectations.

Results 40 matcher issues
Sort by recently updated
recently updated
newest added

I quite often have objects that include a double, and use a deep matcher (via `equals()`), e.g ```dart import 'dart:math'; List a = resultOfSomeFunction(); expect(a, equals([Point(1.2, 3.4), ...]); ``` In...

In my flutter tests, I am wanting to be able to assert that a `TypeError` was thrown. To do this, I have to do something like: ```dart test('fromJson throws TypeError...

When creating a Stream, emitsInOrder seems to works differently for yield and yield*. The sample code for each is as follows. ```dart Stream get sampleStream async* { print('sampleStream 0'); yield*...

Since the matchers are using FeatureMatcher, the typedMatches method receives a typed object instead of dynamic

I want to test if a `Stream` doesn't emit anything if a variable is `false`, I can't see how to do it with the current API, so a timeout of...

```dart expect(1, ""); // no compile error ``` it's annoying when my tests fail due to the expected and actual values being incompatible types. the compiler should be able to...

Sometimes I want to wrap a `Matcher` and mostly delegate to it, but explicitly implementing only 1 of the `Matcher` methods. Whenever this need arises in a project, I look...

With instantiated constructor tearoffs, the dynamic argument to test(actual, dynamic matcher) can accidentally be IsA instead of IsA(). It would be nice to detect that, and give a useful error,...

type-enhancement

Hello! When dealing with error handling, it's quite important to make sure that the proper stacktrace is passed around. But at the moment, we don't really have a matcher to...

For example write char code (10, 13, ...) or literal (`\n`, `\r`, ...) at cursor position. ``` 00:02 +28 -1: test/common/pipes/date_pipe_test.dart: DatePipe transform should format each component correctly [E] Expected:...

type-enhancement