From eb13a0cf2acd2d70c872700ddbd4f36f88c06b07 Mon Sep 17 00:00:00 2001 From: Jan Range Date: Fri, 7 Jun 2024 20:12:39 +0200 Subject: [PATCH] change to `assert!` --- src/pipeline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline.rs b/src/pipeline.rs index 8baff6f..e3a3d38 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -395,13 +395,13 @@ mod tests { fn test_has_wildcard_fname() { let path = PathBuf::from("path/to/*.json"); let result = has_wildcard_fname(&path); - assert_eq!(result, true); + assert!(result); } #[test] fn test_has_wildcard_fname_no_wildcard() { let path = PathBuf::from("path/to/file.json"); let result = has_wildcard_fname(&path); - assert_eq!(result, false); + assert!(!result); } }