A compact set of 40 auditable test cases covering 13 measurement categories: length, mass, speed, pressure, temperature, volume, energy, data storage, time, angle, area, force, and power.
Each CSV row contains a source value and unit, a target unit, the expected result, and an absolute tolerance. The included dependency-free JavaScript reference implementation independently evaluates every case.
npm testunit_conversion_qa.csv— the tabular QA cases;datapackage.json— Frictionless Data metadata and schema;reference.js— transparent scale-and-offset reference implementation;validate.js— schema, uniqueness, and numerical checks;index.html— searchable browser view for the dataset.
Multiplicative categories convert through one canonical unit. Temperature converts through kelvin so both the scale and offset remain explicit. Expected values are stored separately from the implementation, and every row defines its own absolute tolerance.
For interactive calculations, definitions, and additional units, use UnitConv.
MIT