Browse Source

test: remove exit tests

main
fdai7451 2 years ago
parent
commit
786deec960
  1. 15
      src/builtins/exit.rs

15
src/builtins/exit.rs

@ -9,17 +9,4 @@ impl Builtin for Exit {
}
}
/*#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_exit() {
assert_eq!(Exit.execute(vec!["arg".to_string()]), Err(ShellError::Exit))
}
#[test]
fn test_exit_without_args() {
assert_eq!(Exit.execute(vec![]), Err(ShellError::Exit))
}
}*/
// do not write tests for this. the call of exit 0 will abort all other tests too
Loading…
Cancel
Save