From e9d31114060ea42e6189d2078e5f708546cfad3e Mon Sep 17 00:00:00 2001 From: o2sh Date: Sun, 20 Oct 2019 21:41:40 +0200 Subject: [PATCH] fixing build by adapting test to take into account boldness #96 --- src/ascii_art.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ascii_art.rs b/src/ascii_art.rs index c3ae887e0..daa79e55d 100644 --- a/src/ascii_art.rs +++ b/src/ascii_art.rs @@ -258,36 +258,36 @@ mod test { #[test] fn truncate() { let colors_shim = Vec::new(); - assert_eq!(Tokens("").render(&colors_shim, 0, 0), "\u{1b}[37m\u{1b}[0m"); + assert_eq!(Tokens("").render(&colors_shim, 0, 0), "\u{1b}[1;37m\u{1b}[0m"); assert_eq!( Tokens(" ").render(&colors_shim, 0, 0), - "\u{1b}[37m\u{1b}[0m" + "\u{1b}[1;37m\u{1b}[0m" ); assert_eq!( Tokens(" ").render(&colors_shim, 0, 5), - "\u{1b}[37m \u{1b}[0m" + "\u{1b}[1;37m \u{1b}[0m" ); assert_eq!( Tokens(" ").render(&colors_shim, 1, 5), - "\u{1b}[37m \u{1b}[0m" + "\u{1b}[1;37m \u{1b}[0m" ); assert_eq!( Tokens(" ").render(&colors_shim, 3, 5), - "\u{1b}[37m \u{1b}[0m" + "\u{1b}[1;37m \u{1b}[0m" ); assert_eq!( Tokens(" ").render(&colors_shim, 0, 4), - "\u{1b}[37m \u{1b}[0m" + "\u{1b}[1;37m \u{1b}[0m" ); assert_eq!( Tokens(" ").render(&colors_shim, 0, 3), - "\u{1b}[37m \u{1b}[0m" + "\u{1b}[1;37m \u{1b}[0m" ); assert_eq!( Tokens(" {1} {5} {9} a").render(&colors_shim, 4, 10), - "\u{1b}[37m\u{1b}[0m\u{1b}[37m\u{1b}[0m\u{1b}[37m \u{1b}[0m\u{1b}[37m a\u{1b}[0m " + "\u{1b}[1;37m\u{1b}[0m\u{1b}[1;37m\u{1b}[0m\u{1b}[1;37m \u{1b}[0m\u{1b}[1;37m a\u{1b}[0m " ); } }