From f3acf0c486f871716cf8c83b3660788a333d8d70 Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Sat, 21 Jan 2023 17:09:09 +0100 Subject: [PATCH] test: add cd test without args --- src/builtins/cd.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/cd.rs b/src/builtins/cd.rs index 877c3f1..5fea769 100644 --- a/src/builtins/cd.rs +++ b/src/builtins/cd.rs @@ -27,6 +27,11 @@ mod tests { use super::*; use std::path::Path; + #[test] + fn test_cd_no_args() { + assert_eq!(Cd.execute(&mut BuiltinConfig::new(), vec![]), Ok(())) + } + #[test] fn test_cd_current() { assert_eq!(