Skip to content

Commit 84eb240

Browse files
committed
Test all
1 parent 73e3a92 commit 84eb240

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

crates/core_simd/tests/ops_macros.rs

+12-2
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,22 @@ macro_rules! impl_float_tests {
282282
impl_binary_op_test!(Vector<LANES>, Scalar, Rem::rem, RemAssign::rem_assign);
283283

284284
#[test]
285-
fn is_nan() {
285+
fn is_nan2() {
286+
test_helpers::test_unary_mask_elementwise(
287+
&Vector::<1>::is_nan,
288+
&Scalar::is_nan,
289+
&|_| true,
290+
);
286291
test_helpers::test_unary_mask_elementwise(
287292
&Vector::<2>::is_nan,
288293
&Scalar::is_nan,
289294
&|_| true,
290295
);
296+
test_helpers::test_unary_mask_elementwise(
297+
&Vector::<4>::is_nan,
298+
&Scalar::is_nan,
299+
&|_| true,
300+
);
291301
test_helpers::test_unary_mask_elementwise(
292302
&Vector::<8>::is_nan,
293303
&Scalar::is_nan,
@@ -362,7 +372,6 @@ macro_rules! impl_float_tests {
362372
);
363373
}
364374

365-
/*
366375
fn is_nan<const LANES: usize>() {
367376
test_helpers::test_unary_mask_elementwise(
368377
&Vector::<LANES>::is_nan,
@@ -371,6 +380,7 @@ macro_rules! impl_float_tests {
371380
);
372381
}
373382

383+
/*
374384
fn is_normal<const LANES: usize>() {
375385
test_helpers::test_unary_mask_elementwise(
376386
&Vector::<LANES>::is_normal,

0 commit comments

Comments
 (0)