From 2848be6b7380c7c02fba224edd13f0bcf0a252a6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 29 Apr 2023 16:48:46 -0700 Subject: [PATCH] Add an empty test case to the join_strings tests --- fish-rust/src/wcstringutil.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fish-rust/src/wcstringutil.rs b/fish-rust/src/wcstringutil.rs index 9842dbbfd..a068c0c8b 100644 --- a/fish-rust/src/wcstringutil.rs +++ b/fish-rust/src/wcstringutil.rs @@ -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")], '/'),