Index: tests/SkNxTest.cpp |
diff --git a/tests/SkNxTest.cpp b/tests/SkNxTest.cpp |
index 13e0a9f61fba5ba83327beaebcc52de1a464cd30..e329e17bfad8e259c42a3abf26365f8104f30239 100644 |
--- a/tests/SkNxTest.cpp |
+++ b/tests/SkNxTest.cpp |
@@ -215,6 +215,14 @@ DEF_TEST(SkNx_abs, r) { |
REPORTER_ASSERT(r, fs.kth<3>() == 4.0f); |
} |
+DEF_TEST(SkNx_floor, r) { |
+ auto fs = Sk4f(0.4f, -0.4f, 0.6f, -0.6f).floor(); |
+ REPORTER_ASSERT(r, fs.kth<0>() == 0.0f); |
+ REPORTER_ASSERT(r, fs.kth<1>() == -1.0f); |
+ REPORTER_ASSERT(r, fs.kth<2>() == 0.0f); |
+ REPORTER_ASSERT(r, fs.kth<3>() == -1.0f); |
+} |
+ |
DEF_TEST(SkNx_shuffle, r) { |
Sk4f f4(0,10,20,30); |