From 481ede8a6f0ba7df6db99fe00afd611e3cf4198e Mon Sep 17 00:00:00 2001 From: Gerrit Viljoen Date: Sun, 17 May 2020 12:28:27 +0200 Subject: [PATCH] save game --- src/test.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test.rs b/src/test.rs index 9009c34..cc55102 100644 --- a/src/test.rs +++ b/src/test.rs @@ -587,6 +587,19 @@ fn color_codes_n5() { assert_eq!(expected, config.format(input)); } +#[test] +fn color_codes_missing_m() { + let config = AsciiTable::default(); + let input = vec![vec![ + "\u{1b}[0Hello\u{1b}[0" + ]]; + let expected = "┌───────┐\n\ + │ \u{1b}[0Hello\u{1b}[0 │\n\ + └───────┘\n"; + + assert_eq!(expected, config.format(input)); +} + #[test] fn color_codes() { let config = AsciiTable::default();