|
|
@ -70,18 +70,23 @@ mod tests { |
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_exit() {
|
|
|
|
assert_eq!(is_builtin("exit"), true);
|
|
|
|
fn test_is_builtin_cd() {
|
|
|
|
assert_eq!(is_builtin("cd"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_cd() {
|
|
|
|
assert_eq!(is_builtin("cd"), true);
|
|
|
|
fn test_is_builtin_change_prompt() {
|
|
|
|
assert_eq!(is_builtin("change-prompt"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_pwd() {
|
|
|
|
assert_eq!(is_builtin("pwd"), true);
|
|
|
|
fn test_is_builtin_exit() {
|
|
|
|
assert_eq!(is_builtin("exit"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_fetch() {
|
|
|
|
assert_eq!(is_builtin("fetch"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
@ -100,8 +105,13 @@ mod tests { |
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_change_prompt() {
|
|
|
|
assert_eq!(is_builtin("change-prompt"), true);
|
|
|
|
fn test_is_builtin_pwd() {
|
|
|
|
assert_eq!(is_builtin("pwd"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_segfault() {
|
|
|
|
assert_eq!(is_builtin("segfault"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
@ -114,16 +124,6 @@ mod tests { |
|
|
|
assert_eq!(is_builtin("quote"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_fetch() {
|
|
|
|
assert_eq!(is_builtin("fetch"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_segfault() {
|
|
|
|
assert_eq!(is_builtin("segfault"), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_is_builtin_notabuiltin() {
|
|
|
|
assert_eq!(is_builtin("notabuiltin"), false)
|
|
|
|