ver Jan22nd

updated all the existing calc configs
This commit is contained in:
David Chang
2024-01-22 12:42:50 +08:00
parent 552491f765
commit 7a85c76369
19 changed files with 245 additions and 78 deletions

View File

@@ -247,17 +247,22 @@ def compare_table(result: str, expected: str, **options) -> float:
raise NotImplementedError("Unimplemented sheet check: {:}".format(r["type"]))
passes = passes and metric
if not passes:
break
return float(passes)
# }}} function compare_table #
if __name__ == '__main__':
path1 = "../../任务数据/LibreOffice Calc/Represent_in_millions_billions.xlsx"
path2 = "../../任务数据/LibreOffice Calc/Represent_in_millions_billions_gold.xlsx"
rules = [ { "type": "sheet_print"
path1 = "../../任务数据/LibreOffice Calc/Freeze_row_column.xlsx"
path2 = "../../任务数据/LibreOffice Calc/Freeze_row_column_gold.xlsx"
rules = [ { "type": "sheet_data"
, "sheet_idx0": 0
, "sheet_idx1": "EI0"
}
, { "type": "freeze"
, "sheet_idx0": 0
, "sheet_idx1": "EI0"
, "ignore_case": "true"
}
]
print( compare_table( path1, path2