Skip to content

Repository files navigation

Unit Conversion QA Dataset

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.

Validate the dataset

npm test

Files

  • unit_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.

Method

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.

License

MIT

About

A tested, machine-readable QA dataset for validating common unit conversions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages