Home
last modified time | relevance | path

Searched refs:poison (Results 1 – 1 of 1) sorted by relevance

/bootable/libbootloader/gbl/libsafemath/src/
Dlib.rs323 let poison = base + SafeNum::MAX; in test_addition_poison() localVariable
324 assert!(u64::try_from(poison).is_err()); in test_addition_poison()
326 let a = poison - 1; in test_addition_poison()
327 let b = poison - 2; in test_addition_poison()
329 assert_eq!(a, poison); in test_addition_poison()
330 assert_eq!(b, poison); in test_addition_poison()
336 let poison = base - SafeNum::MAX; in test_subtraction_poison() localVariable
337 assert!(u64::try_from(poison).is_err()); in test_subtraction_poison()
339 let a = poison + 1; in test_subtraction_poison()
340 let b = poison + 2; in test_subtraction_poison()
[all …]