mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Add an empty test case to the join_strings tests
This commit is contained in:
parent
a9708367db
commit
2848be6b73
1 changed files with 1 additions and 0 deletions
|
@ -602,6 +602,7 @@ fn test_join_strings() {
|
|||
use crate::wchar::L;
|
||||
let empty: &[&wstr] = &[];
|
||||
assert_eq!(join_strings(empty, '/'), "");
|
||||
assert_eq!(join_strings(&[] as &[&wstr], '/'), "");
|
||||
assert_eq!(join_strings(&[L!("foo")], '/'), "foo");
|
||||
assert_eq!(
|
||||
join_strings(&[L!("foo"), L!("bar"), L!("baz")], '/'),
|
||||
|
|
Loading…
Reference in a new issue