Chromium Code Reviews| Index: pkg/matcher/test/core_matchers_test.dart |
| diff --git a/pkg/matcher/test/core_matchers_test.dart b/pkg/matcher/test/core_matchers_test.dart |
| index 3f694f31c49a8739236d5b4a319ec217f0a7a786..79efb3266c6bb6613f05567cfd2733ceabf4cd9b 100644 |
| --- a/pkg/matcher/test/core_matchers_test.dart |
| +++ b/pkg/matcher/test/core_matchers_test.dart |
| @@ -33,6 +33,16 @@ void main() { |
| shouldFail(null, isNotNull, "Expected: not null Actual: <null>"); |
| }); |
| + test('isNaN', () { |
| + shouldPass(NaN, isNaN); |
|
kevmoo
2014/07/22 20:44:37
you need double.NAN here, right?
srawlins
2014/07/22 22:49:06
Done.
|
| + shouldFail(3.1, isNaN, "Expected: NaN Actual: <3.1>"); |
| + }); |
| + |
| + test('isNotNaN', () { |
| + shouldPass(3.1, isNotNaN); |
| + shouldFail(NaN, isNotNaN, "Expected: not NaN Actual: <NaN>"); |
| + }); |
| + |
| test('same', () { |
| var a = new Map(); |
| var b = new Map(); |