From c06a4aa793305f5e0dc51aeac7def2d8c15a9d67 Mon Sep 17 00:00:00 2001 From: Gerrit Viljoen Date: Sun, 17 May 2020 11:59:06 +0200 Subject: [PATCH] save game --- src/test.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test.rs b/src/test.rs index f2821a0..a286e6e 100644 --- a/src/test.rs +++ b/src/test.rs @@ -525,8 +525,9 @@ fn mixed_types() { #[test] fn color_codes() { let config = AsciiTable::default(); - let text = "Hello".color(Color::Blue).bg_color(Color::Yellow).bold(); - let input = vec![vec![text]]; + let input = vec![vec![ + "Hello".color(Color::Blue).bg_color(Color::Yellow).bold() + ]]; let expected = "┌───────┐\n\ │ \u{1b}[38;5;4m\u{1b}[48;5;3;1mHello\u{1b}[0m │\n\ └───────┘\n";