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

Unified Diff: pkg/intl/test/number_format_test.dart

Issue 332663002: pkg/matcher: add isNaN and isNotNaN matchers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | pkg/matcher/lib/src/core_matchers.dart » ('j') | pkg/matcher/lib/src/core_matchers.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/number_format_test.dart
diff --git a/pkg/intl/test/number_format_test.dart b/pkg/intl/test/number_format_test.dart
index 340197110fb60408b88d822a2d2ef525bf58c2eb..963b6ffc65563d05b25d6c0fc579d4214c11a2f1 100644
--- a/pkg/intl/test/number_format_test.dart
+++ b/pkg/intl/test/number_format_test.dart
@@ -103,7 +103,7 @@ main() {
var readBack = number.parse(formatted);
// Even among ones we can read back, we can't test NaN for equality.
if (allTestNumbers[x].isNaN) {
- expect(readBack.isNaN, isTrue);
+ expect(readBack, isNaN);
} else {
expect(readBack, allTestNumbers[x]);
}
« no previous file with comments | « no previous file | pkg/matcher/lib/src/core_matchers.dart » ('j') | pkg/matcher/lib/src/core_matchers.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698