From b2e0005092f066b7df4daa981c81d1a884f2f414 Mon Sep 17 00:00:00 2001 From: fdai7375 Date: Thu, 2 Feb 2023 18:55:59 +0100 Subject: [PATCH] refactoring: use assert instead of assert_eq --- src/builtins/mod.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 23a8a8b..f063ceb 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -71,61 +71,61 @@ mod tests { #[test] fn test_is_builtin_cd() { - assert_eq!(is_builtin("cd"), true); + assert!(is_builtin("cd")); } #[test] fn test_is_builtin_change_prompt() { - assert_eq!(is_builtin("change-prompt"), true); + assert!(is_builtin("change-prompt")); } #[test] fn test_is_builtin_exit() { - assert_eq!(is_builtin("exit"), true); + assert!(is_builtin("exit")); } #[test] fn test_is_builtin_fetch() { - assert_eq!(is_builtin("fetch"), true); + assert!(is_builtin("fetch")); } #[test] fn test_is_builtin_help() { - assert_eq!(is_builtin("help"), true); + assert!(is_builtin("help")); } #[test] fn test_is_builtin_ls() { - assert_eq!(is_builtin("ls"), true); + assert!(is_builtin("ls")); } #[test] fn test_is_builtin_open() { - assert_eq!(is_builtin("open"), true); + assert!(is_builtin("open")); } #[test] fn test_is_builtin_pwd() { - assert_eq!(is_builtin("pwd"), true); + assert!(is_builtin("pwd")); } #[test] fn test_is_builtin_segfault() { - assert_eq!(is_builtin("segfault"), true); + assert!(is_builtin("segfault")); } #[test] fn test_is_builtin_sus() { - assert_eq!(is_builtin("sus"), true); + assert!(is_builtin("sus")); } #[test] fn test_is_builtin_quote() { - assert_eq!(is_builtin("quote"), true); + assert!(is_builtin("quote")); } #[test] fn test_is_builtin_notabuiltin() { - assert_eq!(is_builtin("notabuiltin"), false) + assert!(!is_builtin("notabuiltin")) } }