From 494e7d0d79bcef25ac263161fb6cfcf9cc6ba7ac Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Sat, 21 Jan 2023 18:37:59 +0100 Subject: [PATCH] refactoring: fmt preprocessing tests --- src/preprocess.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/preprocess.rs b/src/preprocess.rs index 3a6a0cd..0bcce08 100644 --- a/src/preprocess.rs +++ b/src/preprocess.rs @@ -50,11 +50,17 @@ mod tests { #[test] fn test_preprocessing_resolve_env_variable() { assert_eq!(preprocess("key=value".to_string()), Ok(None)); - assert_eq!(preprocess("$key".to_string()), Ok(Some("value".to_string()))) + assert_eq!( + preprocess("$key".to_string()), + Ok(Some("value".to_string())) + ) } #[test] fn test_preprocessing_resolve_non_existent_env_variable() { - assert_eq!(preprocess("$nonexitent".to_string()), Ok(Some("".to_string()))) + assert_eq!( + preprocess("$nonexitent".to_string()), + Ok(Some("".to_string())) + ) } }