Skip to content
Snippets Groups Projects
Verified Commit f71ea5fc authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Reading XLSX.

parent de1b92a7
No related branches found
No related tags found
2 merge requests!107Release v0.11.0,!102ENH: XLSX reader
......@@ -92,8 +92,9 @@ Raise an assertion exception if they are not equal."""
assert (allow_none and existing is None) or (allow_empty and existing == []), (
f"Element at path {this_path} is None or empty in one json and does not exist in "
"the other.")
return
assert isinstance(json1, list) and isinstance(json2, list), f"Type mismatch, path: {path}"
assert isinstance(json1, list) and isinstance(json2, list), f"Is not a list, path: {path}"
assert len(json1) == len(json2), f"Lists must have equal length, path: {path}"
for idx, (el1, el2) in enumerate(zip(json1, json2)):
this_path = path + [idx]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment