Fix a type error that occurs comparing two large maps with `deepEquals`. (#2442) Closes #2442 Avoid inference forcing a `List<Iterable<String>>` which results in a type error inserting a range into a list requiring `List<String>`. Add a test for collection truncating which would have failed with a type error before this fix.
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.
| Package | Description | Version |
|---|---|---|
| checks | A framework for checking values against expectations and building custom expectations. | |
| fake_async | Fake asynchronous events such as timers and microtasks for deterministic testing. | |
| matcher | Support for specifying test expectations via an extensible Matcher class. | |
| test | A full featured library for writing and running Dart tests across platforms. | |
| test_api | ||
| test_core | ||
| test_descriptor | An API for defining and verifying files and directory structures. | |
| test_process | Test processes: starting; validating stdout and stderr; checking exit code |