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

Unified Diff: tests/language/math_vm_test.dart

Issue 22892002: Fix issue 12369: compare kind of unary math instruction and not only the inputs to determine if at… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « runtime/vm/intermediate_language.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
===================================================================
--- tests/language/math_vm_test.dart (revision 26012)
+++ tests/language/math_vm_test.dart (working copy)
@@ -44,9 +44,19 @@
}
+testSinCos(a) {
+ double sVal = sin(a);
+ double cVal = cos(a);
+ return sVal + cVal;
+}
+
main() {
+ const double value = 1.54;
+ final firstRes = testSinCos(value);
for (int i = 0; i < 200; i++) {
MathTest.testMain();
testDoublePow();
+ testSinCos(value);
}
+ Expect.equals(firstRes, testSinCos(value));
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698