From 786deec960f88501a9299dd10320100bdc578143 Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Sat, 21 Jan 2023 15:18:43 +0100 Subject: [PATCH] test: remove exit tests --- src/builtins/exit.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/builtins/exit.rs b/src/builtins/exit.rs index 6b4d2ee..a9bfc20 100644 --- a/src/builtins/exit.rs +++ b/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