mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-29 13:34:21 +00:00
fix black
Signed-off-by: Matteo-Omenetti <Matteo.Omenetti1@ibm.com>
This commit is contained in:
parent
68d1713802
commit
297e837719
@ -48,7 +48,7 @@ def test_code_and_formula_conversion():
|
|||||||
code_blocks = [el for el in results if isinstance(el, CodeItem)]
|
code_blocks = [el for el in results if isinstance(el, CodeItem)]
|
||||||
assert len(code_blocks) == 1
|
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 predicted == gt, f"mismatch in text {predicted=}, {gt=}"
|
||||||
|
Loading…
Reference in New Issue
Block a user