From 38dbd0d65b6236e842e48ec42a14848389f56d0f Mon Sep 17 00:00:00 2001 From: fdai7374 Date: Wed, 1 Feb 2023 21:01:15 +0100 Subject: [PATCH] test: add test for only witespace string in split_command --- src/builtins/help.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/help.rs b/src/builtins/help.rs index 9765d61..afd6321 100644 --- a/src/builtins/help.rs +++ b/src/builtins/help.rs @@ -53,4 +53,9 @@ mod tests { #[test] fn test_split_command_empty(){assert_eq!(split_command(""),vec!["",""])} + + #[test] + fn test_split_command_only_space(){ + assert_eq!(split_command(" "),vec!["",""]); + } } \ No newline at end of file