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

Side by Side Diff: tests/language/intrinsified_methods_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Dart test program for testing the instanceof operation. 4 // Dart test program for testing the instanceof operation.
5 5
6 library intrinsified_methods_test; 6 library intrinsified_methods_test;
7 import "package:expect/expect.dart";
7 import 'dart:math'; 8 import 'dart:math';
8 9
9 testIsNegative() { 10 testIsNegative() {
10 Expect.isFalse((12.0).isNegative); 11 Expect.isFalse((12.0).isNegative);
11 Expect.isTrue((-12.0).isNegative); 12 Expect.isTrue((-12.0).isNegative);
12 Expect.isFalse((double.NAN).isNegative); 13 Expect.isFalse((double.NAN).isNegative);
13 Expect.isFalse((0.0).isNegative); 14 Expect.isFalse((0.0).isNegative);
14 Expect.isTrue((-0.0).isNegative); 15 Expect.isTrue((-0.0).isNegative);
15 Expect.isFalse((double.INFINITY).isNegative); 16 Expect.isFalse((double.INFINITY).isNegative);
16 Expect.isTrue((double.NEGATIVE_INFINITY).isNegative); 17 Expect.isTrue((double.NEGATIVE_INFINITY).isNegative);
(...skipping 18 matching lines...) Expand all
35 testIsNegative(); 36 testIsNegative();
36 testIsNaN(); 37 testIsNaN();
37 testTrigonometric(); 38 testTrigonometric();
38 } 39 }
39 return x; 40 return x;
40 } 41 }
41 42
42 void main() { 43 void main() {
43 var m = foo(4000); 44 var m = foo(4000);
44 } 45 }
OLDNEW
« no previous file with comments | « tests/language/interface_injection2_negative_test.dart ('k') | tests/language/invocation_mirror2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698