Browse Source

test: add help is builtin command test

main
fdai7374 2 years ago
committed by fdai7451
parent
commit
c348798663
  1. 5
      src/builtins/mod.rs

5
src/builtins/mod.rs

@ -82,6 +82,11 @@ mod tests {
assert_eq!(is_builtin("pwd"), true); assert_eq!(is_builtin("pwd"), true);
} }
#[test]
fn test_is_builtin_help() {
assert_eq!(is_builtin("help"), true);
}
#[test] #[test]
fn test_is_builtin_ls() { fn test_is_builtin_ls() {
assert_eq!(is_builtin("ls"), true); assert_eq!(is_builtin("ls"), true);

Loading…
Cancel
Save