Skip to content

Commit

Permalink
Added underscore support
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Sep 6, 2023
1 parent 04b117c commit a14fd39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions pydetex/_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
('---', '—'),
('\#', '#'),
('\&', '&'),
('\_', '_'),
('~', ' '),
('fi', 'fi')
]
Expand Down
2 changes: 1 addition & 1 deletion pydetex/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def __str__(self) -> str:
patch = property(lambda self: self[2])


vernum = Version(1, 0, 3)
vernum = Version(1, 0, 4)
ver = str(vernum)
rev = ''
1 change: 1 addition & 0 deletions test/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def test_simple_replace(self) -> None:
'The following example $α₀+β²=0$')
self.assertEqual(par.simple_replace('This is a $x_0$ and \(x^2\)'), 'This is a $x₀$ and \(x²\)')
self.assertEqual(par.simple_replace('This is $\\alpha$'), 'This is $α$')
self.assertEqual(par.simple_replace('This is \#my\_var'), 'This is #my_var')

def test_parse_inputs(self) -> None:
"""
Expand Down
7 changes: 2 additions & 5 deletions test/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,11 @@ def test_strict(self) -> None:
par._load_file_search('data/example_complex_envs_output.txt'))

# Exclusive tests
test_complex = True
if 'GITHUB' in os.environ:
return
example_files = [
('data/example_complex_template.txt', 'data/example_complex_template_output.txt')
]
if not test_complex:
example_files = []
if not (True and 'GITHUB' not in os.environ): # If not test complex
example_files.clear()
for f in example_files:
self.assertEqual(pip.strict(par._load_file_search(f[0])), par._load_file_search(f[1]))

Expand Down

0 comments on commit a14fd39

Please sign in to comment.