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

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

Issue 14381002: TBR: Fix type matcher regexps; dart2js sees 5.0 as an int so changed to 5.1. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/matchers_test.dart
===================================================================
--- pkg/unittest/test/matchers_test.dart (revision 21774)
+++ pkg/unittest/test/matchers_test.dart (working copy)
@@ -238,22 +238,22 @@
});
test('scalar type mismatch', () {
- shouldFail('error', equals(5.0),
- matches("^Expected: <5\.0>"
+ shouldFail('error', equals(5.1),
+ matches("^Expected: <5\.1>"
" but: was .*:'error' \\(not type .*\\)\.\$"));
});
test('nested type mismatch', () {
- shouldFail(['error'], equals([5.0]),
- matches(r"^Expected: <\[5\.0\]>"
- " but: expected double:<5\.0> "
+ shouldFail(['error'], equals([5.1]),
+ matches(r"^Expected: <\[5\.1\]>"
+ " but: expected double:<5\.1> "
"but was .*:'error' mismatch at position 0\.\$"));
});
test('doubly-nested type mismatch', () {
- shouldFail([['error']], equals([[5.0]]),
- matches(r"^Expected: <\[\[5\.0\]\]>"
- " but: expected double:<5\.0> "
+ shouldFail([['error']], equals([[5.1]]),
+ matches(r"^Expected: <\[\[5\.1\]\]>"
+ " but: expected double:<5\.1> "
"but was .*:'error' mismatch at position 0 "
"mismatch at position 0\.\$"));
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698