Expand description
Table row/cell comparison — port of cell-diff.ts / CellDiff.java.
Object + instanceof Map/List duck-typing becomes matching on Value.
Structs§
- Cell
Diff - 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).
columnlabels it. Expected vs actual, plus raw values and whether a parameter-typeformatproducedactual(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
returnedare checked; a non-map/Nonereturn checks nothing. - compare_
table - Compares a whole-table step’s returned table against the input table.
Nonechecks nothing; type/shape problems returnStepError::ReturnShape. - render_
cell_ value - Display rules 2–4 of the mismatch-rendering chain: a string as-is, anything else a best-effort stringification.