ver Jan22nd
updated all the existing calc configs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user