Skip to content

Commit

Permalink
test: include invalid eqns in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Jan 10, 2025
1 parent 8bcbfd7 commit 0b45113
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ def test_mathjax_plain_text_conversion_for_search(self):
('Fraction test 3: \\( \\frac{\\frac{2}{3}}{4} \\)', 'Fraction test 3: ((2/3)/4)'),
('Fraction test 4: \\( \\frac{\\frac{2} {3}}{4} \\)', 'Fraction test 4: ((2/3)/4)'),
('Fraction test 5: \\( \\frac{\\frac{2} {3}}{\\frac{4}{3}} \\)', 'Fraction test 5: ((2/3)/(4/3))'),
# Invalid equations.
('Fraction error: \\( \\frac{2} \\)', 'Fraction error: \\frac{2}'),
('Fraction error 2: \\( \\frac{\\frac{2}{3}{4} \\)', 'Fraction error 2: \\frac{\\frac{2}{3}{4}'),
('Unclosed: [mathjaxinline]x^2', 'Unclosed: [mathjaxinline]x^2'),
]
# pylint: enable=line-too-long
block = BlockFactory.create(
Expand Down

0 comments on commit 0b45113

Please sign in to comment.