Skip to content

Commit

Permalink
presentation renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddoret committed Dec 5, 2024
1 parent 2c6da98 commit dd6d91c
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 26 deletions.
47 changes: 22 additions & 25 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions tests/test_greek_alphabet_lowercase_serif_italic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import pytest
import punctilious as pu


class TestGreekAlphabetLowercaseSerifItalic:
def test_greek_alphabet_lowercase_serif_italic(self):
"""Test of representation with multiple string-constant renderers.
"""
pass
prefs = pu.presentation.TagsPreferences()
prefs[pu.presentation.unicode_basic] = 2
assert (pu.greek_alphabet_lowercase_serif_italic.lambda2.rep(prefs=prefs) == 'lambda')
prefs[pu.presentation.unicode_extended] = 3
assert (pu.greek_alphabet_lowercase_serif_italic.lambda2.rep(prefs=prefs) == '𝜆')
prefs[pu.presentation.latex_math] = 4
assert (pu.greek_alphabet_lowercase_serif_italic.lambda2.rep(prefs=prefs) == '\\lambda')
pass
2 changes: 1 addition & 1 deletion tests/test_greek_alphabet_uppercase_serif_italic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ def test_greek_alphabet_lowercase_serif_italic(self):
prefs[pu.presentation.unicode_extended] = 3
assert (pu.greek_alphabet_uppercase_serif_italic.phi.rep(prefs=prefs) == '𝛷')
prefs[pu.presentation.latex_math] = 4
assert (pu.greek_alphabet_uppercase_serif_italic.phi.rep(prefs=prefs) == f'\\Phi')
assert (pu.greek_alphabet_uppercase_serif_italic.phi.rep(prefs=prefs) == '\\Phi')
pass

0 comments on commit dd6d91c

Please sign in to comment.