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 | 4 |
5 class MathTest { | 5 class MathTest { |
6 static void testConstants() { | 6 static void testConstants() { |
7 // Source for mathematical constants is Wolfram Alpha. | 7 // Source for mathematical constants is Wolfram Alpha. |
8 Expect.equals(2.7182818284590452353602874713526624977572470936999595749669, | 8 Expect.equals(2.7182818284590452353602874713526624977572470936999595749669, |
9 Math.E); | 9 Math.E); |
10 Expect.equals(2.3025850929940456840179914546843642076011014886287729760333, | 10 Expect.equals(2.3025850929940456840179914546843642076011014886287729760333, |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 testLog(); | 248 testLog(); |
249 testExp(); | 249 testExp(); |
250 testPow(); | 250 testPow(); |
251 testParseInt(); | 251 testParseInt(); |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 main() { | 255 main() { |
256 MathTest.testMain(); | 256 MathTest.testMain(); |
257 } | 257 } |
OLD | NEW |