Skip to content

Commit

Permalink
Fixed tests for multiple dictionaries to pass. Still should be extended.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Jul 4, 2024
1 parent 3c45242 commit e4e1341
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def test_produces_correct_markup():
"""
<span lang="cr" data-orth
data-orth-Latn="wâpamêw"
data-orth-Latn-y="wâpamêw"
data-orth-latn-x-macron="wāpamēw"
data-orth-latn-x-macron-y="wāpamēw"
data-orth-Cans="ᐚᐸᒣᐤ">wâpamêw</span>
""",
rendered,
Expand All @@ -37,7 +39,9 @@ def test_naughty_html():
"""
<span lang="cr" data-orth
data-orth-Latn="&lt;img alt=&quot;tâpwêw&quot;&gt;"
data-orth-Latn-y="&lt;img alt=&quot;tâpwêw&quot;&gt;"
data-orth-latn-x-macron="&lt;img alt=&quot;tāpwēw&quot;&gt;"
data-orth-latn-x-macron-y="&lt;img alt=&quot;tāpwēw&quot;&gt;"
data-orth-Cans="&lt;img alt=&quot;ᑖᐻᐤ&quot;&gt;">&lt;img alt=&quot;tâpwêw&quot;&gt;</span>
""",
rendered,
Expand All @@ -63,7 +67,9 @@ def test_provide_orthograpy(orth, inner_text):
f"""
<span lang="cr" data-orth
data-orth-Latn="wâpamêw"
data-orth-Latn-y="wâpamêw"
data-orth-latn-x-macron="wāpamēw"
data-orth-latn-x-macron-y="wāpamēw"
data-orth-Cans="ᐚᐸᒣᐤ">{inner_text}</span>
""",
rendered,
Expand Down Expand Up @@ -95,7 +101,9 @@ def test_orth_template_tag(orth, inner_text):
f"""
<span lang="cr" data-orth
data-orth-Latn="wâpamêw"
data-orth-Latn-y="wâpamêw"
data-orth-latn-x-macron="wāpamēw"
data-orth-latn-x-macron-y="wāpamēw"
data-orth-Cans="ᐚᐸᒣᐤ">{inner_text}</span>
""",
rendered,
Expand All @@ -117,7 +125,9 @@ def test_cree_example():
f"""
like: <span lang="cr" data-orth
data-orth-Latn="wâpamêw"
data-orth-Latn-y="wâpamêw"
data-orth-latn-x-macron="wāpamēw"
data-orth-latn-x-macron-y="wāpamēw"
data-orth-Cans="ᐚᐸᒣᐤ">ᐚᐸᒣᐤ</span>
""",
rendered,
Expand Down Expand Up @@ -156,7 +166,9 @@ def test_no_hyphens_in_syllabics():
f"""
<span lang="cr" data-orth
data-orth-Latn="nôhtê-"
data-orth-Latn-y="nôhtê-"
data-orth-latn-x-macron="nōhtē-"
data-orth-latn-x-macron-y="nōhtē-"
data-orth-Cans="ᓅᐦᑌ">ᓅᐦᑌ</span>
""",
rendered,
Expand Down

0 comments on commit e4e1341

Please sign in to comment.