File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 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 {
4141 bool matches (dynamic item, Map matchState) {
4242 if (_expected.runtimeType != item.runtimeType) return false ;
4343
44+ if (_expected == item) return true ;
45+
4446 return _delegate.matches (_toMap (item), matchState);
4547 }
4648}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ void main() {
103103 ..name = 'foo'
104104 ..onChanged = () => 'Change happened!' );
105105
106- expect (value, otherValue);
106+ expect (value, equalsBuilt ( otherValue) );
107107 });
108108
109109 test ('compared value matcher with different onChanged outcomes' , () {
@@ -114,7 +114,7 @@ void main() {
114114 ..name = 'foo'
115115 ..onChanged = () => 'Change did not happen!' );
116116
117- expect (value, otherValue);
117+ expect (value, equalsBuilt ( otherValue) );
118118 });
119119
120120 test ('compared value matcher with different names' , () {
You can’t perform that action at this time.
0 commit comments