Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 664dad1

Browse files
committed
rename
1 parent 86ace48 commit 664dad1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kamyu104/src/number_of_1_bits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod tests {
1111
use super::*;
1212

1313
#[test]
14-
fn test_add() {
14+
fn test_hamming_weight() {
1515
assert_eq!(Solution::hamming_weight(3), 3);
1616
assert_eq!(Solution::hamming_weight(4), 4);
1717
}

kamyu104/src/single_number_ii.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mod tests {
5454
use super::*;
5555

5656
#[test]
57-
fn test_add() {
57+
fn test_single_number() {
5858
assert_eq!(Solution1::single_number(vec![2, 2, 3, 2]), 3);
5959
assert_eq!(Solution1::single_number(vec![0, 1, 0, 1, 0, 1, 99]), 99);
6060
assert_eq!(Solution1::single_number(vec![0, 0, 0, 1, 1, 1, 5]), 5);

0 commit comments

Comments
 (0)