From Dev.to
Test JavaScript unit conversions against exact rational answers
Unit conversion functions are short enough to look correct at a glance. A swapped factor or confused unit can still survive a handful of examples. A useful test strategy combines familiar anchor value...
