Jump to content

Module talk:Ppoem/testcases

Page contents not supported in other languages.
Add topic
From Wikisource

All 21 tests passed.

test_line_syntax_parsing
Text Expected Actual
YesY Plain stanza line() {type="stanza"} {type="stanza"}
YesY Stanza class line({stanza_class}) {classes={"ws-poem-stanza_class"},type="stanza"} {classes={"ws-poem-stanza_class"},type="stanza"}
YesY Stanza class line, multiple({stanza class}) {classes={"ws-poem-stanza","ws-poem-class"},type="stanza"} {classes={"ws-poem-stanza","ws-poem-class"},type="stanza"}
YesY Aligned right stanza line(>>) {align="r",type="stanza"} {align="r",type="stanza"}
YesY Aligned center stanza line(<>) {align="c",type="stanza"} {align="c",type="stanza"}
YesY Aligned right stanza line with class({stanza_class} >>) {align="r",type="stanza",classes={"ws-poem-stanza_class"}} {align="r",type="stanza",classes={"ws-poem-stanza_class"}}
YesY Aligned center stanza line with class({stanza_class} <>) {align="c",type="stanza",classes={"ws-poem-stanza_class"}} {align="c",type="stanza",classes={"ws-poem-stanza_class"}}
YesY Content line(Lorem ipsum) {content="Lorem ipsum",type="line"} {type="line",content="Lorem ipsum"}
YesY Classed line({line_class} Lorem ipsum) {classes={"ws-poem-line_class"},type="line",content="Lorem ipsum"} {classes={"ws-poem-line_class"},type="line",content="Lorem ipsum"}
YesY Classed line, multiple({line class} Lorem ipsum) {classes={"ws-poem-line","ws-poem-class"},type="line",content="Lorem ipsum"} {classes={"ws-poem-line","ws-poem-class"},type="line",content="Lorem ipsum"}
YesY Aligned right line(>> Lorem ipsum) {align="r",type="line",content="Lorem ipsum"} {type="line",align="r",content="Lorem ipsum"}
YesY Aligned center line(<> Lorem ipsum) {align="c",type="line",content="Lorem ipsum"} {type="line",align="c",content="Lorem ipsum"}
YesY Aligned right line with class({line_class} >> Lorem ipsum) {align="r",type="line",content="Lorem ipsum",classes={"ws-poem-line_class"}} {classes={"ws-poem-line_class"},type="line",align="r",content="Lorem ipsum"}
YesY Aligned center line with class({line_class} <> Lorem ipsum) {align="c",type="line",content="Lorem ipsum",classes={"ws-poem-line_class"}} {classes={"ws-poem-line_class"},type="line",align="c",content="Lorem ipsum"}
YesY Line with verse number(42 <<< Lorem) {type="line",content="Lorem",verse_num="42"} {type="line",content="Lorem",verse_num="42"}
YesY Line with line number(Lorem >>> 13) {type="line",content="Lorem",line_num="13"} {type="line",line_num="13",content="Lorem"}
YesY Empty line with line number(>>> 13) {type="line",content="",line_num="13"} {type="line",line_num="13",content=""}
YesY Indented line with colons(:::: Lorem) {indent={em=4},type="line",content="Lorem"} {indent={em=4},type="line",content="Lorem"}
YesY Indented line with spaces( Lorem) {indent={nbsp=4},type="line",content="Lorem"} {indent={nbsp=4},type="line",content="Lorem"}
YesY Indented line with colons and class(:::: {line_class} Lorem) {indent={em=4},type="line",content="Lorem",classes={"ws-poem-line_class"}} {classes={"ws-poem-line_class"},type="line",indent={em=4},content="Lorem"}
YesY Indented line with spaces( Lorem) {indent={nbsp=4},type="line",content="Lorem"} {indent={nbsp=4},type="line",content="Lorem"}

Start a discussion about Module:Ppoem/testcases

Start a discussion