Skip to content

Commit 68507b1

Browse files
committed
fix: test cases
1 parent 8fa6c3b commit 68507b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bit_manipulation/_0191_number_of_1_bits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ pub fn hamming_weight(n: u32) -> i32 {
5151

5252
#[test]
5353
pub fn t1() {
54-
assert_eq!(hamming_weight(00000000000011), 2);
54+
assert_eq!(hamming_weight(0b000000000001011), 3);
5555
}

0 commit comments

Comments
 (0)