Skip to main content

Module cell_diff

Module cell_diff 

Source
Expand description

Table row/cell comparison — port of cell-diff.ts / CellDiff.java. Object + instanceof Map/List duck-typing becomes matching on Value.

Structs§

CellDiff
The verdict for one comparison of one CELL — the atomic value a sensor checks against the document (a table cell, a header-bound row’s cell, or a value captured from a paragraph). column labels it. Expected vs actual, plus raw values and whether a parameter-type format produced actual (inline-parameter path).
RowCheck
One checked column of one header-bound row.

Functions§

compare_row
Compares a row step’s returned map against the row’s cells. Only columns present on returned are checked; a non-map/None return checks nothing.
compare_table
Compares a whole-table step’s returned table against the input table. None checks nothing; type/shape problems return StepError::ReturnShape.
render_cell_value
Display rules 2–4 of the mismatch-rendering chain: a string as-is, anything else a best-effort stringification.