Browse Source

test: add cd is builtin test

main
fdai7375 2 years ago
parent
commit
3d17cc2fdd
  1. 10
      src/builtins/mod.rs

10
src/builtins/mod.rs

@ -14,3 +14,13 @@ pub fn execute_builtin(keyword: &str, args: &[&str]) -> Result<(), ShellError> {
} }
Ok(()) Ok(())
} }
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_is_builtin_cd() {
assert_eq!(is_builtin("cd"), true);
}
}
Loading…
Cancel
Save