From 5d0f600cc4e15c579f9afc77a4fc7fd045c27add Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Thu, 19 Jan 2023 14:32:06 +0100 Subject: [PATCH] test: add is not a 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 ac07bb9..c851029 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -38,4 +38,9 @@ mod tests { fn test_is_builtin_cd() { assert_eq!(is_builtin("cd"), true); } + + #[test] + fn test_is_builtin_notabuiltin() { + assert_eq!(is_builtin("notabuiltin"), false) + } }