mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix spans tests
This commit is contained in:
parent
038294339d
commit
3099588f16
@ -33,32 +33,39 @@ fn test_line_breaks() {
|
|||||||
Span {
|
Span {
|
||||||
content: "I ",
|
content: "I ",
|
||||||
attr: &Style::none(),
|
attr: &Style::none(),
|
||||||
|
width: 2,
|
||||||
},
|
},
|
||||||
Span {
|
Span {
|
||||||
content: "didn't",
|
content: "didn't",
|
||||||
attr: &Style::from(Effect::Bold),
|
attr: &Style::from(Effect::Bold),
|
||||||
|
width: 6,
|
||||||
},
|
},
|
||||||
Span {
|
Span {
|
||||||
content: " say ",
|
content: " say ",
|
||||||
attr: &Style::none(),
|
attr: &Style::none(),
|
||||||
|
width: 5,
|
||||||
},
|
},
|
||||||
Span {
|
Span {
|
||||||
content: "half",
|
content: "half",
|
||||||
attr: &Style::from(Effect::Italic),
|
attr: &Style::from(Effect::Italic),
|
||||||
|
width: 4,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
vec![Span {
|
vec![Span {
|
||||||
content: "the things people",
|
content: "the things people",
|
||||||
attr: &Style::none(),
|
attr: &Style::none(),
|
||||||
|
width: 17,
|
||||||
}],
|
}],
|
||||||
vec![Span {
|
vec![Span {
|
||||||
content: "say I did.",
|
content: "say I did.",
|
||||||
attr: &Style::none(),
|
attr: &Style::none(),
|
||||||
|
width: 10,
|
||||||
}],
|
}],
|
||||||
vec![],
|
vec![],
|
||||||
vec![Span {
|
vec![Span {
|
||||||
content: " - A. Einstein",
|
content: " - A. Einstein",
|
||||||
attr: &Style::none(),
|
attr: &Style::none(),
|
||||||
|
width: 17
|
||||||
}],
|
}],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user