From 3d17cc2fddb80288d9f67f98263cbf53378f2b82 Mon Sep 17 00:00:00 2001 From: fdai7375 Date: Thu, 19 Jan 2023 01:03:25 +0100 Subject: [PATCH] test: add cd is builtin test --- src/builtins/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 39735bd..dfe335e 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -14,3 +14,13 @@ pub fn execute_builtin(keyword: &str, args: &[&str]) -> Result<(), ShellError> { } Ok(()) } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_is_builtin_cd() { + assert_eq!(is_builtin("cd"), true); + } +}