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

Unified Diff: tests/lib/typed_data/float64x2_functional_test.dart

Issue 174353003: Use the correct value offset for Float64x2 on ARM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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_arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/typed_data/float64x2_functional_test.dart
diff --git a/tests/lib/typed_data/float64x2_functional_test.dart b/tests/lib/typed_data/float64x2_functional_test.dart
index fb144e7e3d55a98565c90aac8099f04f4aefc45f..2f06ccf18322afea01c15873571dff2adcf53d7a 100644
--- a/tests/lib/typed_data/float64x2_functional_test.dart
+++ b/tests/lib/typed_data/float64x2_functional_test.dart
@@ -69,10 +69,10 @@ testAdd() {
}
testSub() {
- var m = new Float64x2(1.0, -2.0);
+ var m = new Float64x2(1.5, -2.0);
var n = new Float64x2(1.0, 2.0);
var o = m - n;
- Expect.equals(0.0, o.x);
+ Expect.equals(0.5, o.x);
Expect.equals(-4.0, o.y);
}
@@ -110,11 +110,11 @@ testAbs() {
testClamp() {
var m = new Float64x2(1.0, -2.0);
- var lo = new Float64x2(0.0, 0.0);
+ var lo = new Float64x2(0.0, 0.5);
var hi = new Float64x2(2.0, 2.0);
m = m.clamp(lo, hi);
Expect.equals(1.0, m.x);
- Expect.equals(0.0, m.y);
+ Expect.equals(0.5, m.y);
}
testSignMask() {
@@ -137,10 +137,10 @@ testMin() {
}
testMax() {
- var m = new Float64x2(0.0, -99.0);
+ var m = new Float64x2(0.5, -99.0);
var n = new Float64x2(-1.0, -1.0);
var o = m.max(n);
- Expect.equals(0.0, o.x);
+ Expect.equals(0.5, o.x);
Expect.equals(-1.0, o.y);
}
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698