Browse Source

test: add ls is builting command test

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

5
src/builtins/mod.rs

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

Loading…
Cancel
Save