Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>
  • Loading branch information
Matteo-Omenetti authored and Matteo-Omenetti committed Feb 4, 2025
1 parent 68d1713 commit 297e837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_code_formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def test_code_and_formula_conversion():
code_blocks = [el for el in results if isinstance(el, CodeItem)]
assert len(code_blocks) == 1

gt = 'function add(a, b) {\n return a + b;\n}\nconsole.log(add(3, 5));'
gt = "function add(a, b) {\n return a + b;\n}\nconsole.log(add(3, 5));"

predicted = code_blocks[0].text.strip()
predicted = code_blocks[0].text.strip()
assert predicted == gt, f"mismatch in text {predicted=}, {gt=}"
assert code_blocks[0].code_language == CodeLanguageLabel.JAVASCRIPT

Expand Down

0 comments on commit 297e837

Please sign in to comment.