Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
EFanZh committed Jun 17, 2024
1 parent a8f2e61 commit 7de71a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/problem_0880_decoded_string_at_index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod tests {
];

for ((s, k), expected) in test_cases {
assert_eq!(S::decode_at_index(s.to_string(), k), expected.to_string());
assert_eq!(S::decode_at_index(s.to_string(), k), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_0899_orderly_queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod tests {
let test_cases = [(("cba", 1), "acb"), (("baaca", 3), "aaabc")];

for ((s, k), expected) in test_cases {
assert_eq!(S::orderly_queue(s.to_string(), k), expected.to_string());
assert_eq!(S::orderly_queue(s.to_string(), k), expected);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod tests {
];

for ((s, k), expected) in test_cases {
assert_eq!(S::remove_duplicates(s.to_string(), k), expected.to_string());
assert_eq!(S::remove_duplicates(s.to_string(), k), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_1816_truncate_sentence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod tests {
];

for ((s, k), expected) in test_cases {
assert_eq!(S::truncate_sentence(s.to_string(), k), expected.to_string());
assert_eq!(S::truncate_sentence(s.to_string(), k), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_1881_maximum_value_after_insertion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod tests {
let test_cases = [(("99", 9), "999"), (("-13", 2), "-123")];

for ((n, x), expected) in test_cases {
assert_eq!(S::max_value(n.to_string(), x), expected.to_string());
assert_eq!(S::max_value(n.to_string(), x), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_2243_calculate_digit_sum_of_a_string/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod tests {
let test_cases = [(("11111222223", 3), "135"), (("00000000", 3), "000")];

for ((s, k), expected) in test_cases {
assert_eq!(S::digit_sum(s.to_string(), k), expected.to_string());
assert_eq!(S::digit_sum(s.to_string(), k), expected);
}
}
}

0 comments on commit 7de71a1

Please sign in to comment.