Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor the tests #22

Merged
merged 4 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove the whitespace from the handle_escaped_strings test
we already have the `ignore_whitespace_in_string` test for this.
  • Loading branch information
amtoine committed Jun 9, 2023
commit a03a4ac9158fc9f3e867c061dbdd8101853796dc
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ mod test {

#[test]
fn handle_escaped_strings() {
let nu = String::from(" \" hallo \\\" \" \n");
let expected = String::from("\" hallo \\\" \"\n");
let nu = String::from(" \"hallo\\\"\" \n");
let expected = String::from("\"hallo\\\"\"\n");
assert_eq!(expected, format_string(&nu, &Config::default()));
}

Expand Down