Skip to content

Commit

Permalink
test: modified mistakes in test cases (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Mar 10, 2024
1 parent b114c85 commit d234441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/train_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ mod tests_of_train_case_with_sep {

#[test]
fn it_should_convert_cobol_case() {
let result = train_case_with_sep("ABC_DEF_GHI", "_");
let result = train_case_with_sep("ABC-DEF-GHI", "-");
assert_eq!(result, "Abc-Def-Ghi");

let result = train_case_with_sep("ABC_DEF_GHI", "-");
assert_eq!(result, "Abc_-Def_-Ghi");
let result = train_case_with_sep("ABC-DEF-GHI", "_");
assert_eq!(result, "Abc--Def--Ghi");
}

#[test]
Expand Down

0 comments on commit d234441

Please sign in to comment.