|
@ -21,6 +21,11 @@ pub fn execute_builtin(keyword: &str, args: &[&str]) -> Result<(), ShellError> { |
|
|
mod tests {
|
|
|
mod tests {
|
|
|
use super::*;
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
|
fn test_is_builtin_exit() {
|
|
|
|
|
|
assert_eq!(is_builtin("exit"), true);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
#[test]
|
|
|
fn test_is_builtin_cd() {
|
|
|
fn test_is_builtin_cd() {
|
|
|
assert_eq!(is_builtin("cd"), true);
|
|
|
assert_eq!(is_builtin("cd"), true);
|
|
|