Browse Source

test: add change-prompt is builtin test

main
fdai7375 2 years ago
committed by fdai7451
parent
commit
7834043514
  1. 5
      src/builtins/mod.rs

5
src/builtins/mod.rs

@ -70,6 +70,11 @@ mod tests {
assert_eq!(is_builtin("pwd"), true); assert_eq!(is_builtin("pwd"), true);
} }
#[test]
fn test_is_builtin_change_prompt() {
assert_eq!(is_builtin("change-prompt"), 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