-
Notifications
You must be signed in to change notification settings - Fork 37
fix: Improve the output of many matchers that expect specific types #86
Conversation
We had so far made the explicit decision not to do this. I can't tell based on that conversation whether the main consideration is that we can't take advantage of the new types from |
fd84382
to
309a3c2
Compare
In my mind, dart-lang/test#2352 is not about That's tough because This just makes writing |
309a3c2
to
a6a37a8
Compare
item
in functions
Took a different approach, @natebosch . PTAL |
a6a37a8
to
7f1469a
Compare
going to let Nate do this one I don't think we need 3 people to review this, unless there is something specific... |
Thoughts, @natebosch ? |
There's a lot to consider - can we discuss in person sometime soon? |
Tomorrow. Sure.
…On Wed, Jun 13, 2018 at 1:18 PM Nate Bosch ***@***.***> wrote:
There's a lot to consider - can we discuss in person sometime soon?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCiqgHL7johHHQBYloNyDz_rdJERkaks5t8XOAgaJpZM4UlMvA>
.
|
7f1469a
to
83b0d4b
Compare
8c42876
to
e4c7d12
Compare
09a7cb1
to
d1bcd54
Compare
4ff649f
to
2fc1ab2
Compare
d1bcd54
to
f81b17f
Compare
2fc1ab2
to
52a53e9
Compare
@natebosch – and finally... |
- Add a package-private FeatureMatcher class to generalize type checking - Use it across many of the existing Matcher implementations - Update tests validate new, more consistent failure messages - Add a few new tests for `isIn`
f81b17f
to
7ca775b
Compare
if (isDart2) { | ||
// With Dart2 semantics, predicate picks up a type argument of `bool` | ||
// and we get nice type checking. | ||
// Without Dart2 semantics a gnarly type error is thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we going to be prevented from publishing this until Dart 2 is the default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! This test is just skipped w/ Dart2. All tests pass with and without
matches
type checkingisIn