Browse Source

test: add pwd is builtin test

main
fdai7375 2 years ago
parent
commit
9b6331458f
  1. 5
      src/builtins/mod.rs

5
src/builtins/mod.rs

@ -65,6 +65,11 @@ mod tests {
assert_eq!(is_builtin("cd"), true); assert_eq!(is_builtin("cd"), true);
} }
#[test]
fn test_is_builtin_pwd() {
assert_eq!(is_builtin("pwd"), true);
}
#[test] #[test]
fn test_is_builtin_notabuiltin() { fn test_is_builtin_notabuiltin() {
assert_eq!(is_builtin("notabuiltin"), false) assert_eq!(is_builtin("notabuiltin"), false)

Loading…
Cancel
Save