Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: pkg/unittest/test/instance_test.dart

Issue 14600029: Add pretty-printing to unittest and more thoroughly print values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/unittest/test/instance_test.dart
diff --git a/pkg/unittest/test/instance_test.dart b/pkg/unittest/test/instance_test.dart
index deb1c215ba84b59c2b78a9af6de4003e5973b467..39402c952a85201f8fa977ee174af6fae8783fba 100644
--- a/pkg/unittest/test/instance_test.dart
+++ b/pkg/unittest/test/instance_test.dart
@@ -15,15 +15,17 @@ main() {
group('Type Matchers', () {
test('isInstanceOf', () {
shouldFail(0, new isInstanceOf<String>('String'),
- "Expected: an instance of String but: was <0>.");
+ "Expected: an instance of String But: was <0>.");
shouldPass('cow', new isInstanceOf<String>('String'));
});
test('throwsA', () {
shouldPass(doesThrow, throwsA(equals('X')));
shouldFail(doesThrow, throwsA(equals('Y')),
- "Expected: throws an exception which matches 'Y' "
- "but: exception 'X' does not match 'Y'.");
+ "Expected: throws an exception which matches 'Y' "
+ "But: exception 'X' does not match 'Y'. "
+ "Actual: <Closure: (dynamic) => dynamic "
+ "from Function 'doesThrow': static.>");
});
});
}

Powered by Google App Engine
This is Rietveld 408576698