Skip to content

Commit b3e9ee8

Browse files
committed
Add assert
1 parent 9614dc9 commit b3e9ee8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

intel-mkl-sys/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ mod tests {
4848
vdCos(n as i32, a.as_ptr(), b.as_mut_ptr());
4949
}
5050
for i in 0..n {
51-
ulps_eq!(b[i], a[i].cos(), max_ulps = 4, epsilon = std::f64::EPSILON);
51+
assert!(ulps_eq!(
52+
b[i],
53+
a[i].cos(),
54+
max_ulps = 4,
55+
epsilon = std::f64::EPSILON
56+
));
5257
}
5358
}
5459

0 commit comments

Comments
 (0)