Skip to content

Commit 0fd28b7

Browse files
committed
fix: warnings
1 parent 06ad1fd commit 0fd28b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/fermats_little_theorem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ mod tests {
128128
let carmichael_numbers = vec![561, 1105, 1729, 2465, 2821, 6601];
129129
for &n in &carmichael_numbers {
130130
let result = fermats_little_theorem(n, 10);
131-
assert!(result == false || result == true);
131+
assert!(result || !result);
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)