mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
fix black
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>
This commit is contained in:
parent
68d1713802
commit
297e837719
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user