Lines Matching refs:REPORTER_ASSERT

48         REPORTER_ASSERT(r, mask[0] == int32_t( 0));
49 REPORTER_ASSERT(r, mask[1] == int32_t( 0));
50 REPORTER_ASSERT(r, mask[2] == int32_t(-1));
51 REPORTER_ASSERT(r, mask[3] == int32_t(-1));
53 REPORTER_ASSERT(r, any(mask));
54 REPORTER_ASSERT(r, !all(mask));
59 REPORTER_ASSERT(r, mask[0] == int64_t( 0));
60 REPORTER_ASSERT(r, mask[1] == int64_t( 0));
61 REPORTER_ASSERT(r, mask[2] == int64_t(-1));
62 REPORTER_ASSERT(r, mask[3] == int64_t(-1));
64 REPORTER_ASSERT(r, any(mask));
65 REPORTER_ASSERT(r, !all(mask));
68 REPORTER_ASSERT(r, min(float4{1,2,3,4}) == 1);
69 REPORTER_ASSERT(r, max(float4{1,2,3,4}) == 4);
71 REPORTER_ASSERT(r, all(int4{1,2,3,4,5} == int4{1,2,3,4}));
72 REPORTER_ASSERT(r, all(int4{1,2,3,4} == int4{1,2,3,4}));
73 REPORTER_ASSERT(r, all(int4{1,2,3} == int4{1,2,3,0}));
74 REPORTER_ASSERT(r, all(int4{1,2} == int4{1,2,0,0}));
75 REPORTER_ASSERT(r, all(int4{1} == int4{1,0,0,0}));
76 REPORTER_ASSERT(r, all(int4(1) == int4{1,1,1,1}));
77 REPORTER_ASSERT(r, all(int4{} == int4{0,0,0,0}));
78 REPORTER_ASSERT(r, all(int4() == int4{0,0,0,0}));
80 REPORTER_ASSERT(r, all(int4{1,2,2,1} == min(int4{1,2,3,4}, int4{4,3,2,1})));
81 REPORTER_ASSERT(r, all(int4{4,3,3,4} == max(int4{1,2,3,4}, int4{4,3,2,1})));
83 REPORTER_ASSERT(r, all(if_then_else(float4{1,2,3,2} <= float4{2,2,2,2}, float4(42), float4(47))
86 REPORTER_ASSERT(r, all(floor(float4{-1.5f,1.5f,1.0f,-1.0f}) == float4{-2.0f,1.0f,1.0f,-1.0f}));
87 REPORTER_ASSERT(r, all( ceil(float4{-1.5f,1.5f,1.0f,-1.0f}) == float4{-1.0f,2.0f,1.0f,-1.0f}));
88 REPORTER_ASSERT(r, all(trunc(float4{-1.5f,1.5f,1.0f,-1.0f}) == float4{-1.0f,1.0f,1.0f,-1.0f}));
89 REPORTER_ASSERT(r, all(round(float4{-1.5f,1.5f,1.0f,-1.0f}) == float4{-2.0f,2.0f,1.0f,-1.0f}));
92 REPORTER_ASSERT(r, all(abs(float4{-2,-1,0,1}) == float4{2,1,0,1}));
95 REPORTER_ASSERT(r, all( sqrt(float4{2,3,4,5}) < float4{2,2,3,3}));
96 REPORTER_ASSERT(r, all( sqrt(float2{2,3}) < float2{2,2}));
98 REPORTER_ASSERT(r, all(skvx::cast<int>(float4{-1.5f,0.5f,1.0f,1.5f}) == int4{-1,0,1,1}));
101 REPORTER_ASSERT(r, all(float4::Load(buf) == float4{1,2,3,4}));
103 REPORTER_ASSERT(r, buf[0] == 2
109 REPORTER_ASSERT(r, all(float4::Load(buf+0) == float4{2,3,4,5}));
110 REPORTER_ASSERT(r, all(float4::Load(buf+2) == float4{4,5,5,6}));
112 REPORTER_ASSERT(r, all(skvx::shuffle<2,1,0,3> (float4{1,2,3,4}) == float4{3,2,1,4}));
113 REPORTER_ASSERT(r, all(skvx::shuffle<2,1> (float4{1,2,3,4}) == float2{3,2}));
114 REPORTER_ASSERT(r, all(skvx::shuffle<3,3,3,3> (float4{1,2,3,4}) == float4{4,4,4,4}));
115 REPORTER_ASSERT(r, all(skvx::shuffle<2,1,2,1,2,1,2,1>(float4{1,2,3,4})
119 REPORTER_ASSERT(r, all(float4{1,2,3,4} < 5));
120 REPORTER_ASSERT(r, all( byte4{1,2,3,4} < 5));
121 REPORTER_ASSERT(r, all( int4{1,2,3,4} < 5.0f));
123 REPORTER_ASSERT(r, all(five == 5.0f));
124 REPORTER_ASSERT(r, all(five == 5));
126 REPORTER_ASSERT(r, all(max(2, min(float4{1,2,3,4}, 3)) == float4{2,2,3,3}));
135 REPORTER_ASSERT(r, got == want);
142 REPORTER_ASSERT(r, got == want-1 ||
146 REPORTER_ASSERT(r, got == want);
156 REPORTER_ASSERT(r, all(mull(byte2 (x), byte2 (y)) == xy));
157 REPORTER_ASSERT(r, all(mull(byte4 (x), byte4 (y)) == xy));
158 REPORTER_ASSERT(r, all(mull(byte8 (x), byte8 (y)) == xy));
159 REPORTER_ASSERT(r, all(mull(byte16(x), byte16(y)) == xy));
168 REPORTER_ASSERT(r, all(skvx:: to_half(fs) == hs));
169 REPORTER_ASSERT(r, all(skvx::from_half(hs) == fs));
175 REPORTER_ASSERT(r, all(f == float2{1,2}));
176 REPORTER_ASSERT(r, f.x() == 1);
177 REPORTER_ASSERT(r, f.y() == 2);
179 REPORTER_ASSERT(r, all(f == float2{1,9}));
181 REPORTER_ASSERT(r, all(f == float2(0,9)));
183 REPORTER_ASSERT(r, f.x() == 8);
185 REPORTER_ASSERT(r, f.y() == 6);
186 REPORTER_ASSERT(r, all(f == float2(8,6)));
188 REPORTER_ASSERT(r, all(f == float2(6,8)));
189 REPORTER_ASSERT(r, skvx::bit_pun<SkPoint>(f) == SkPoint::Make(6,8));
192 REPORTER_ASSERT(r, p == SkPoint::Make(6,8));
194 REPORTER_ASSERT(r, p == SkPoint::Make(8,6));
195 REPORTER_ASSERT(r, all(f.xyxy() == float4(6,8,6,8)));
196 REPORTER_ASSERT(r, all(f.xyxy() == float4(f,f)));
197 REPORTER_ASSERT(r, all(skvx::join(f,f) == f.xyxy()));
198 REPORTER_ASSERT(r, all(skvx::join(f.yx(),f) == float4(f.y(),f.x(),f)));
199 REPORTER_ASSERT(r, all(skvx::join(f.yx(),f) == float4(f.yx(),f.x(),f.y())));
200 REPORTER_ASSERT(r, all(skvx::join(f,f.yx()) == float4(f.x(),f.y(),f.yx())));
201 REPORTER_ASSERT(r, all(skvx::join(f.yx(),f.yx()) == float4(f.yx(),f.yx())));
206 REPORTER_ASSERT(r, all(f == float4(1,2,3,4)));
207 REPORTER_ASSERT(r, all(f == float4(1,2,float2(3,4))));
208 REPORTER_ASSERT(r, all(f == float4(float2(1,2),3,4)));
209 REPORTER_ASSERT(r, all(f == float4(float2(1,2),float2(3,4))));
211 REPORTER_ASSERT(r, all(f == float4(9,8,3,4)));
214 REPORTER_ASSERT(r, all(f == float4(9,8,7,6)));
219 REPORTER_ASSERT(r, all(f == float4(5,4,3,2)));
221 REPORTER_ASSERT(r, f.x() == 0);
223 REPORTER_ASSERT(r, f.y() == 1);
225 REPORTER_ASSERT(r, f.z() == 2);
227 REPORTER_ASSERT(r, f.w() == 3);
228 REPORTER_ASSERT(r, skvx::all(f.xy() == float2(0,1)));
229 REPORTER_ASSERT(r, skvx::all(f.zw() == float2{2,3}));
230 REPORTER_ASSERT(r, all(f == float4(0,1,2,3)));
231 REPORTER_ASSERT(r, all(f.yxwz().lo == skvx::shuffle<1,0>(f)));
232 REPORTER_ASSERT(r, all(f.yxwz().hi == skvx::shuffle<3,2>(f)));
233 REPORTER_ASSERT(r, all(f.zwxy().lo.lo == f.z()));
234 REPORTER_ASSERT(r, all(f.zwxy().lo.hi == f.w()));
235 REPORTER_ASSERT(r, all(f.zwxy().hi.lo == f.x()));
236 REPORTER_ASSERT(r, all(f.zwxy().hi.hi == f.y()));
237 REPORTER_ASSERT(r, f.yxwz().lo.lo.val == f.y());
238 REPORTER_ASSERT(r, f.yxwz().lo.hi.val == f.x());
239 REPORTER_ASSERT(r, f.yxwz().hi.lo.val == f.w());
240 REPORTER_ASSERT(r, f.yxwz().hi.hi.val == f.z());
242 REPORTER_ASSERT(r, all(skvx::naive_if_then_else(int2(0,~0),
245 REPORTER_ASSERT(r, all(skvx::if_then_else(int2(0,~0),
248 REPORTER_ASSERT(r, all(skvx::naive_if_then_else(int2(0,~0).xyxy(),
251 REPORTER_ASSERT(r, all(skvx::if_then_else(int2(0,~0).xyxy(),
255 REPORTER_ASSERT(r, all(skvx::pin(float4(0,1,2,3).yxwz(),
343 REPORTER_ASSERT(r, SkScalarNearlyZero(err_[j]));
348 REPORTER_ASSERT(r, skvx::any(skvx::abs(x - knownRoot) < SK_ScalarNearlyZero));
359 REPORTER_ASSERT(r, a[i] == values[i*2]);
360 REPORTER_ASSERT(r, b[i] == values[i*2 + 1]);
364 REPORTER_ASSERT(r, a[i] == values[i*4]);
365 REPORTER_ASSERT(r, b[i] == values[i*4 + 1]);
366 REPORTER_ASSERT(r, c[i] == values[i*4 + 2]);
367 REPORTER_ASSERT(r, d[i] == values[i*4 + 3]);
403 REPORTER_ASSERT(r, errorBounds(d.divide((kMax))[0], maxCheck));