Add an empty test case to the join_strings tests

This commit is contained in:
ridiculousfish 2023-04-29 16:48:46 -07:00
parent a9708367db
commit 2848be6b73

View File

@ -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")], '/'),