We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d20102 commit 10fd5e8Copy full SHA for 10fd5e8
1 file changed
src/lib.rs
@@ -631,12 +631,13 @@ macro_rules! impl_integer_for_isize {
631
632
#[test]
633
fn test_extended_gcd_lcm() {
634
+ use std::fmt::Debug;
635
use traits::NumAssign;
636
use ExtendedGcd;
637
- fn check<A: Copy + Integer + NumAssign>(a: A, b: A) -> bool {
638
+ fn check<A: Copy + Debug + Integer + NumAssign>(a: A, b: A) {
639
let ExtendedGcd { gcd, x, y, .. } = a.extended_gcd(&b);
- gcd == x * a + y * b
640
+ assert_eq!(gcd, x * a + y * b);
641
}
642
643
use core::iter::once;
0 commit comments