Skip to content

Commit 340eed4

Browse files
committed
fix
1 parent 0c6cca4 commit 340eed4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/corpora/test_usfm_file_text.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def test_get_rows_include_markers() -> None:
168168

169169
assert scripture_ref(rows[0]) == ScriptureRef.parse("MAT 1:1", corpus.versification)
170170
assert (
171-
rows[0].text == "Chapter \\pn one\\+pro WON\\+pro*\\pn*, verse \\f + \\fr 1:1: \\ft This is a footnote for v1.\\f*one."
171+
rows[0].text
172+
== "Chapter \\pn one\\+pro WON\\+pro*\\pn*, verse \\f + \\fr 1:1: \\ft This is a footnote for v1.\\f*one."
172173
)
173174

174175
assert scripture_ref(rows[1]) == ScriptureRef.parse("MAT 1:2", corpus.versification)
@@ -226,7 +227,8 @@ def test_get_rows_include_markers_all_text() -> None:
226227

227228
assert scripture_ref(rows[8]) == ScriptureRef.parse("MAT 1:1", corpus.versification)
228229
assert (
229-
rows[8].text == "Chapter \\pn one\\+pro WON\\+pro*\\pn*, verse \\f + \\fr 1:1: \\ft This is a footnote for v1.\\f*one."
230+
rows[8].text
231+
== "Chapter \\pn one\\+pro WON\\+pro*\\pn*, verse \\f + \\fr 1:1: \\ft This is a footnote for v1.\\f*one."
230232
)
231233

232234
assert scripture_ref(rows[9]) == ScriptureRef.parse("MAT 1:2", corpus.versification)
@@ -239,7 +241,7 @@ def test_get_rows_include_markers_all_text() -> None:
239241
assert rows[20].text == "Chapter \\it Two \\it*"
240242

241243
assert scripture_ref(rows[22]) == ScriptureRef.parse("MAT 2:1", corpus.versification)
242-
assert rows[22].text == "Chapter \\add two\\add*, verse \\f + \\fr 2:1: \\ft This is a \\bd footnote.\\bd*\\f*one.")
244+
assert rows[22].text == "Chapter \\add two\\add*, verse \\f + \\fr 2:1: \\ft This is a \\bd footnote.\\bd*\\f*one."
243245

244246
assert scripture_ref(rows[26]) == ScriptureRef.parse("MAT 2:3/2:esb/2:p", corpus.versification)
245247
assert rows[26].text == "Here is some sidebar // content."

0 commit comments

Comments
 (0)