File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
crates/core_simd/tests/ops_impl Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,14 @@ macro_rules! int_tests {
253
253
let _ = a / b;
254
254
}
255
255
256
+ #[ test]
257
+ #[ cfg_attr( target_arch = "wasm32" , wasm_bindgen_test) ]
258
+ fn div_min_neg_one_no_panic( ) {
259
+ let a = from_slice( & A ) ;
260
+ let b = from_slice( & vec![ -1 ; 64 ] ) ;
261
+ let _ = a / b;
262
+ }
263
+
256
264
#[ test]
257
265
#[ cfg_attr( target_arch = "wasm32" , wasm_bindgen_test) ]
258
266
fn rem( ) {
@@ -300,6 +308,14 @@ macro_rules! int_tests {
300
308
assert_biteq!( a, expected) ;
301
309
}
302
310
311
+ #[ test]
312
+ #[ cfg_attr( target_arch = "wasm32" , wasm_bindgen_test) ]
313
+ fn rem_min_neg_one_no_panic( ) {
314
+ let a = from_slice( & A ) ;
315
+ let b = from_slice( & vec![ -1 ; 64 ] ) ;
316
+ let _ = a % b;
317
+ }
318
+
303
319
#[ test]
304
320
#[ should_panic]
305
321
fn rem_min_panic( ) {
You can’t perform that action at this time.
0 commit comments