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

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

Issue 19564014: Add all 256 shuffle methods to Float32x4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
Index: tests/lib/typed_data/float32x4_test.dart
diff --git a/tests/lib/typed_data/float32x4_test.dart b/tests/lib/typed_data/float32x4_test.dart
index 4d2c15e9a5b07948874dc57beeb86845b6514698..35ee6554cde91041c8ecf1fc7fefc6019f89dd27 100644
--- a/tests/lib/typed_data/float32x4_test.dart
+++ b/tests/lib/typed_data/float32x4_test.dart
@@ -149,6 +149,26 @@ testShuffle() {
Expect.equals(4.0, wwww.y);
Expect.equals(4.0, wwww.z);
Expect.equals(4.0, wwww.w);
+ var wzyx = m.wzyx;
+ Expect.equals(4.0, wzyx.x);
+ Expect.equals(3.0, wzyx.y);
+ Expect.equals(2.0, wzyx.z);
+ Expect.equals(1.0, wzyx.w);
+ var wwzz = m.wwzz;
+ Expect.equals(4.0, wwzz.x);
+ Expect.equals(4.0, wwzz.y);
+ Expect.equals(3.0, wwzz.z);
+ Expect.equals(3.0, wwzz.w);
+ var xxyy = m.xxyy;
+ Expect.equals(1.0, xxyy.x);
+ Expect.equals(1.0, xxyy.y);
+ Expect.equals(2.0, xxyy.z);
+ Expect.equals(2.0, xxyy.w);
+ var yyww = m.yyww;
+ Expect.equals(2.0, yyww.x);
+ Expect.equals(2.0, yyww.y);
+ Expect.equals(4.0, yyww.z);
+ Expect.equals(4.0, yyww.w);
}
testMin() {
« runtime/lib/typed_data.dart ('K') | « tests/lib/typed_data/float32x4_shuffle_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698