Skip to content

Commit

Permalink
🎨 cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
phidiaLam committed Nov 19, 2024
1 parent c096ab0 commit ce3b91a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions libs/bitmap-convert/src/base70.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,20 @@ mod tests {

#[test]
fn test_invalid_char() {
let result: Result<Bitmap<256>, _> = BitmapBase70Conv::from_base_70("ugAU#@r!()Mi".to_owned());

let result: Result<Bitmap<256>, _> =
BitmapBase70Conv::from_base_70("ugAU#@r!()Mi".to_owned());

assert!(result.is_err());
}

#[test]
fn test_invalid_str() {
let decoded_bitmap: Result<Bitmap<256>, _> =
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());
}
}

0 comments on commit ce3b91a

Please sign in to comment.