Chromium Code Reviews| Index: pkg/unittest/lib/src/core_matchers.dart |
| =================================================================== |
| --- pkg/unittest/lib/src/core_matchers.dart (revision 18401) |
| +++ pkg/unittest/lib/src/core_matchers.dart (working copy) |
| @@ -180,13 +180,13 @@ |
| if (includeTypes || depth > 1) { |
| reason.add('expected '); |
| if (includeTypes) { |
| - reason..add(expected.runtimeType).add(':'); |
| + reason.add(expected.runtimeType.toString()).add(':'); |
| } |
| reason.addDescriptionOf(expected).add(' but '); |
| } |
| reason.add('was '); |
| if (includeTypes) { |
| - reason..add(actual.runtimeType).add(':'); |
| + reason..add(actual.runtimeType.toString()).add(':'); |
|
Siggi Cherem (dart-lang)
2013/02/12 21:23:52
.. to .? or change the one in 183 to be .. as well
gram
2013/02/12 21:25:41
Done.
|
| } |
| reason.addDescriptionOf(actual); |
| } |