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

Side by Side Diff: dart/tests/lib/math/min_max_test.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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
« no previous file with comments | « dart/tests/lib/math/math_test.dart ('k') | dart/tests/lib/math/pi_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 for testing Math.min and Math.max. 4 // Dart test for testing Math.min and Math.max.
5 5
6 library min_max_test; 6 #library('min_max_test');
7 import 'dart:math'; 7 #import('dart:math');
8 8
9 testMin() { 9 testMin() {
10 Expect.equals(0, min(0, 2)); 10 Expect.equals(0, min(0, 2));
11 Expect.equals(0, min(2, 0)); 11 Expect.equals(0, min(2, 0));
12 12
13 Expect.equals(-10, min(-10, -9)); 13 Expect.equals(-10, min(-10, -9));
14 Expect.equals(-10, min(-10, 9)); 14 Expect.equals(-10, min(-10, 9));
15 Expect.equals(-10, min(-10, 0)); 15 Expect.equals(-10, min(-10, 0));
16 Expect.equals(-10, min(-9, -10)); 16 Expect.equals(-10, min(-9, -10));
17 Expect.equals(-10, min(9, -10)); 17 Expect.equals(-10, min(9, -10));
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 Expect.isTrue(max(-inf, -0.0).isNegative()); 515 Expect.isTrue(max(-inf, -0.0).isNegative());
516 Expect.isTrue(max(-inf, -499).isNegative()); 516 Expect.isTrue(max(-inf, -499).isNegative());
517 Expect.isTrue(max(-inf, -499.0).isNegative()); 517 Expect.isTrue(max(-inf, -499.0).isNegative());
518 Expect.isTrue(max(-inf, -inf).isNegative()); 518 Expect.isTrue(max(-inf, -inf).isNegative());
519 } 519 }
520 520
521 main() { 521 main() {
522 testMin(); 522 testMin();
523 testMax(); 523 testMax();
524 } 524 }
OLDNEW
« no previous file with comments | « dart/tests/lib/math/math_test.dart ('k') | dart/tests/lib/math/pi_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698