Skip to content

Commit

Permalink
Add additional tests based on the code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
trink committed Feb 1, 2023
1 parent 011ee82 commit 9bd8cef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helix-core/src/shellwords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,13 @@ mod test {
#[test]
fn test_multibyte_at_end() {
assert_eq!(Shellwords::from("๐’€€").parts(), &["๐’€€"]);
assert_eq!(
Shellwords::from(":sh echo ๐’€€").parts(),
&[":sh", "echo", "๐’€€"]
);
assert_eq!(
Shellwords::from(":sh echo ๐’€€ hello world๐’€€").parts(),
&[":sh", "echo", "๐’€€", "hello", "world๐’€€"]
);
}
}

0 comments on commit 9bd8cef

Please sign in to comment.