Skip to main content
Validates that an additive identity holds: total = sum(components) + residual ± tolerance

Signature

Arguments

Returns

rows where the identity does NOT hold (i.e., failing rows). Usage in a singular test file: {{ assert_additive_identity( ref(‘int_lap_residual_decomposed’), ‘pace_delta_s’, [‘fuel_component_s’, ‘compound_component_s’, ‘rubber_component_s’, ‘ambient_component_s’, ‘constructor_component_s’, ‘dirty_air_tax_s’], ‘driver_skill_residual_s’ ) }} The test fails (returns rows) if the identity does not hold to within tolerance.