mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Add an empty test case to the join_strings tests
This commit is contained in:
parent
a9708367db
commit
2848be6b73
|
@ -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 New Issue
Block a user