File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ class _BuiltValueMatcher implements Matcher {
41
41
bool matches (dynamic item, Map matchState) {
42
42
if (_expected.runtimeType != item.runtimeType) return false ;
43
43
44
+ if (_expected == item) return true ;
45
+
44
46
return _delegate.matches (_toMap (item), matchState);
45
47
}
46
48
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ void main() {
103
103
..name = 'foo'
104
104
..onChanged = () => 'Change happened!' );
105
105
106
- expect (value, otherValue);
106
+ expect (value, equalsBuilt ( otherValue) );
107
107
});
108
108
109
109
test ('compared value matcher with different onChanged outcomes' , () {
@@ -114,7 +114,7 @@ void main() {
114
114
..name = 'foo'
115
115
..onChanged = () => 'Change did not happen!' );
116
116
117
- expect (value, otherValue);
117
+ expect (value, equalsBuilt ( otherValue) );
118
118
});
119
119
120
120
test ('compared value matcher with different names' , () {
You can’t perform that action at this time.
0 commit comments