From 3099588f16b4156ccee803741881bcea30d215f6 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 20 Mar 2019 17:08:03 -0700 Subject: [PATCH] Fix spans tests --- src/utils/lines/spans/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/lines/spans/tests.rs b/src/utils/lines/spans/tests.rs index 6a4a30d..5174055 100644 --- a/src/utils/lines/spans/tests.rs +++ b/src/utils/lines/spans/tests.rs @@ -33,32 +33,39 @@ fn test_line_breaks() { Span { content: "I ", attr: &Style::none(), + width: 2, }, Span { content: "didn't", attr: &Style::from(Effect::Bold), + width: 6, }, Span { content: " say ", attr: &Style::none(), + width: 5, }, Span { content: "half", attr: &Style::from(Effect::Italic), + width: 4, }, ], vec![Span { content: "the things people", attr: &Style::none(), + width: 17, }], vec![Span { content: "say I did.", attr: &Style::none(), + width: 10, }], vec![], vec![Span { content: " - A. Einstein", attr: &Style::none(), + width: 17 }], ] );