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

Unified Diff: tests/language/src/ArithmeticTest.dart

Issue 8359022: allow rounding errors on a couple arithmetic tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/ArithmeticTest.dart
diff --git a/tests/language/src/ArithmeticTest.dart b/tests/language/src/ArithmeticTest.dart
index 564a501effb0b38a8e172b724e21371434371be7..f7c94ddf75fc9c870bd58fe0303976981f938e4f 100644
--- a/tests/language/src/ArithmeticTest.dart
+++ b/tests/language/src/ArithmeticTest.dart
@@ -322,8 +322,8 @@ class ArithmeticTest {
// Math functions.
Expect.equals(2.0, Math.sqrt(4.0));
- Expect.equals(1.0, Math.sin(3.14159265 / 2.0));
- Expect.equals(-1.0, Math.cos(3.14159265));
+ Expect.approxEquals(1.0, Math.sin(3.14159265 / 2.0));
+ Expect.approxEquals(-1.0, Math.cos(3.14159265));
Expect.equals(12, Math.parseInt("12"));
Expect.equals(-12, Math.parseInt("-12"));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698