From ce3b91a47547a67799990bee629f948094e51340 Mon Sep 17 00:00:00 2001 From: phidiaLam <2957035701@qq.com> Date: Tue, 19 Nov 2024 23:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20cargo=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/bitmap-convert/src/base70.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/bitmap-convert/src/base70.rs b/libs/bitmap-convert/src/base70.rs index 2df9ed86..be9656ce 100644 --- a/libs/bitmap-convert/src/base70.rs +++ b/libs/bitmap-convert/src/base70.rs @@ -117,15 +117,20 @@ mod tests { #[test] fn test_invalid_char() { - let result: Result, _> = BitmapBase70Conv::from_base_70("ugAU#@r!()Mi".to_owned()); - + let result: Result, _> = + BitmapBase70Conv::from_base_70("ugAU#@r!()Mi".to_owned()); + assert!(result.is_err()); } #[test] fn test_invalid_str() { let decoded_bitmap: Result, _> = - BitmapBase70Conv::from_base_70("ugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()Mi".to_owned()); + BitmapBase70Conv::from_base_70( + "ugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!()MiugAUr!\ + ()MiugAUr!()MiugAUr!()MiugAUr!()Mi" + .to_owned(), + ); assert!(decoded_bitmap.is_err()); } }