Fix markdown tests

This commit is contained in:
Alexandre Bury 2019-04-15 15:50:52 -07:00
parent ac28309b3b
commit ea9d215fa3
2 changed files with 10 additions and 2 deletions

View File

@ -5,5 +5,5 @@ rust:
- nightly - nightly
script: script:
- cargo check --all-features - cargo check --all-features
- cargo build --verbose --features "pancurses-backend termion-backend" - cargo build --verbose --features "markdown pancurses-backend termion-backend"
- cargo test --verbose --features "pancurses-backend termion-backend" - cargo test --verbose --features "markdown pancurses-backend termion-backend"

View File

@ -160,34 +160,42 @@ I *really* love __Cursive__!";
&[ &[
Span { Span {
content: "# ", content: "# ",
width: 2,
attr: &Style::none(), attr: &Style::none(),
}, },
Span { Span {
content: "Attention", content: "Attention",
width: 9,
attr: &Style::none(), attr: &Style::none(),
}, },
Span { Span {
content: "\n\n", content: "\n\n",
width: 0,
attr: &Style::none(), attr: &Style::none(),
}, },
Span { Span {
content: "I ", content: "I ",
width: 2,
attr: &Style::none(), attr: &Style::none(),
}, },
Span { Span {
content: "really", content: "really",
width: 6,
attr: &Style::from(Effect::Italic), attr: &Style::from(Effect::Italic),
}, },
Span { Span {
content: " love ", content: " love ",
width: 6,
attr: &Style::none(), attr: &Style::none(),
}, },
Span { Span {
content: "Cursive", content: "Cursive",
width: 7,
attr: &Style::from(Effect::Bold), attr: &Style::from(Effect::Bold),
}, },
Span { Span {
content: "!", content: "!",
width: 1,
attr: &Style::none(), attr: &Style::none(),
} }
] ]