Skip to content

Commit

Permalink
2.pow in powerset test
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Aug 24, 2023
1 parent bb661d7 commit 6683db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ fn powerset() {

for n in 0..=10 {
let mut it = (0..n).powerset();
let len = 1 << n;
let len = 2_usize.pow(n);
assert_eq!(len, it.clone().count());
assert_eq!(len, it.size_hint().0);
assert_eq!(Some(len), it.size_hint().1);
Expand Down

0 comments on commit 6683db4

Please sign in to comment.