From d0967d581635647aa099b79b6b08863bf48b3a6b Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Wed, 1 Feb 2023 20:54:35 +0100 Subject: [PATCH] test: add test for empty string in split_command --- src/builtins/help.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/builtins/help.rs b/src/builtins/help.rs index fe9fc5d..9765d61 100644 --- a/src/builtins/help.rs +++ b/src/builtins/help.rs @@ -50,4 +50,7 @@ mod tests { let test_string3 = "Wir# $%gehen erst wieder, wenn ihre Leitung läuft!"; assert_eq!(split_command(test_string3),vec!["Wir#", "$%gehen erst wieder, wenn ihre Leitung läuft!"]); } + + #[test] + fn test_split_command_empty(){assert_eq!(split_command(""),vec!["",""])} } \ No newline at end of file