#![allow( // clippy is broken and shows wrong warnings // clippy on stable does not know yet about the lint name
unknown_lints, // https://github.com/rust-lang/rust-clippy/issues/8867
clippy::derive_partial_eq_without_eq, // This allows the tests to be written more uniform and not have to special case the last clone().
clippy::redundant_clone,
)]
mod utils;
usecrate::utils::{check_deserialization, check_error_deserialization, is_equal}; use expect_test::expect; use serde::{Deserialize, Serialize}; use serde_with::{
base64::{Base64, Bcrypt, BinHex, Crypt, ImapMutf7, Standard, UrlSafe},
formats::{Padded, Unpadded},
serde_as,
};
#[test] fn base64_vec() { let check_equal = vec![vec![0, 1, 2, 13], vec![14, 5, 6, 7]]; let check_deser = vec![vec![0xaa, 0xbc, 0xff], vec![0xe0, 0x7d], vec![0xe0, 0x7d]]; let check_deser_from = r#"["qrz/","4H0=","4H0"]"#;
check_error_deserialization::<BDefault>(
r#"["0"]"#,
expect!["Encoded text cannot have a 6-bit remainder. at line 1 column 4"],
);
check_error_deserialization::<BDefault>(
r#"["zz"]"#,
expect!["Invalid last symbol 122, offset 1. at line 1 column 5"],
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.