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();