From 849c6c8bea14a6393cd613b1018c79a0d31d0625 Mon Sep 17 00:00:00 2001 From: Vladimir Serov Date: Tue, 11 Feb 2020 10:55:29 +0300 Subject: [PATCH] utf-8: better formatted qr code in test --- src/render/utf8.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/render/utf8.rs b/src/render/utf8.rs index f886f8d..5768184 100644 --- a/src/render/utf8.rs +++ b/src/render/utf8.rs @@ -104,6 +104,15 @@ fn integration_render_utf8_1x2() { .light_color(Dense1x2::Dark) .module_dimensions(1, 1) .build(); - assert_eq!("█████████████████\n██ ▄▄▄▄▄ █▄▀▄█▄██\n██ █ █ █ █ ██\n██ █▄▄▄█ █▄▄██▀██\n██▄▄▄▄▄▄▄█▄▄▄▀ ██\n██▄ ▀ ▀ ▀▄▄ ████\n██▄▄▀▄█ ▀▀▀ ▀▄▄██\n██▄▄▄█▄▄█▄██▄█▄██\n▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀", image); + assert_eq!(image, + "█████████████████\n\ + ██ ▄▄▄▄▄ █▄▀▄█▄██\n\ + ██ █ █ █ █ ██\n\ + ██ █▄▄▄█ █▄▄██▀██\n\ + ██▄▄▄▄▄▄▄█▄▄▄▀ ██\n\ + ██▄ ▀ ▀ ▀▄▄ ████\n\ + ██▄▄▀▄█ ▀▀▀ ▀▄▄██\n\ + ██▄▄▄█▄▄█▄██▄█▄██\n\ + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"); } \ No newline at end of file