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

Unified Diff: tests/language/math_vm_test.dart

Issue 12038013: Reland r17365. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: replace enter with EnterFrame Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« runtime/vm/intermediate_language_x64.cc ('K') | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/math_vm_test.dart
diff --git a/tests/language/math_vm_test.dart b/tests/language/math_vm_test.dart
index cde27ef770c60e96650dcb6caadf747a8d81e26e..96e88bc237dcc78f845cb759a609798fe5b44abb 100644
--- a/tests/language/math_vm_test.dart
+++ b/tests/language/math_vm_test.dart
@@ -37,8 +37,15 @@ class MathTest {
Expect.equals(false, testSqrt(const FakeNumber()));
}
}
+
+testDoublePow() {
+ Expect.equals((1 << 32).toDouble(), pow(2.0, 32));
+}
+
+
main() {
for (int i = 0; i < 200; i++) {
Florian Schneider 2013/01/22 11:22:34 Not sure if 200 is enough to get it optimized reli
Vyacheslav Egorov (Google) 2013/01/22 11:36:31 This tests comes with VMOptions=--optimization_co
MathTest.testMain();
+ testDoublePow();
}
}
« runtime/vm/intermediate_language_x64.cc ('K') | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698