INNER CODE UNIT · Rust
test_qrcode_too_large
matiaskorhonen/paper-age · src/builder.rs:442
fn test_qrcode_too_large() {
let mut document = Document::new(String::from("QR code"), PageSize::A4).unwrap();
let result = document.insert_qr_code(String::from(include_str!("../tests/data/too_large.txt")));
assert!(result.is_err());
assert!(result.unwrap_err().is::<qrcode::types::QrError>());
}