fix: 前端 HIGH/MEDIUM — timer 清理 + 历史持久化 + Error Boundary + console 移除
This commit is contained in:
@@ -83,7 +83,7 @@ fn test_ascii_output() {
|
||||
#[test]
|
||||
fn test_png_output() {
|
||||
let qr = QrCode::encode("TEST", QrConfig::default()).unwrap();
|
||||
let png = qr.to_png_bytes(4);
|
||||
let png = qr.to_png_bytes(4).unwrap();
|
||||
assert!(!png.is_empty());
|
||||
// PNG 文件应以 8 字节魔术签名开头
|
||||
assert_eq!(&png[..8], &[137, 80, 78, 71, 13, 10, 26, 10]);
|
||||
|
||||
Reference in New Issue
Block a user