From f0a86b38669e06c5d9a6f50597313705d987c493 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Thu, 19 Jan 2023 01:41:03 +0100 Subject: [PATCH] test: add exit is builtin test --- src/builtins/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 56adceb..9d78357 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -21,6 +21,11 @@ pub fn execute_builtin(keyword: &str, args: &[&str]) -> Result<(), ShellError> { mod tests { use super::*; + #[test] + fn test_is_builtin_exit() { + assert_eq!(is_builtin("exit"), true); + } + #[test] fn test_is_builtin_cd() { assert_eq!(is_builtin("cd"), true);