OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 to test arithmetic operations. | 4 // Dart test program to test arithmetic operations. |
5 | 5 |
6 class ArithmeticTest { | 6 class ArithmeticTest { |
7 | 7 |
8 static bool exceptionCaughtParseInt(String s) { | 8 static bool exceptionCaughtParseInt(String s) { |
9 try { | 9 try { |
10 Math.parseInt(s); | 10 Math.parseInt(s); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 static testMain() { | 408 static testMain() { |
409 for (int i = 0; i < 1500; i++) { | 409 for (int i = 0; i < 1500; i++) { |
410 runOne(); | 410 runOne(); |
411 } | 411 } |
412 } | 412 } |
413 } | 413 } |
414 | 414 |
415 main() { | 415 main() { |
416 ArithmeticTest.testMain(); | 416 ArithmeticTest.testMain(); |
417 } | 417 } |
OLD | NEW |