Allow private types in pretty print (#116)

Closes #115

The default print of `"?"` for private implementation classes can be
confusing, especially cases like `[Uri.parse('')]` which pretty prints
as `[?:]`.

- Add more types to print like "primitives" where they already include
  the type name in their default `toString`.
- Remove handling of `null`, it is handled already in the calling
  function.
- Add handling for some core types that are backed by private
  implementation classes.
- Remove the unnecessary try/catch and outdated comments.
3 files changed
tree: c64d3dfeefa344c426116108210858c9fc956380
  1. lib/
  2. test/
  3. .gitignore
  4. .test_config
  5. .travis.yml
  6. analysis_options.yaml
  7. CHANGELOG.md
  8. LICENSE
  9. pubspec.yaml
  10. README.md
README.md

Support for specifying test expectations, such as for unit tests.

The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.

For more information, see Unit Testing with Dart.