Skip to content
Snippets Groups Projects
Commit 37b9f912 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Added tests.

parent fd7e2e14
No related branches found
No related tags found
1 merge request!2386Resolve "Add unit support for percentages"
Pipeline #198721 failed
......@@ -39,7 +39,8 @@ test('conversion works both ways for each compatible unit', async () => {
}
})
test.each([
test.only.each([
['dimensionless', 'dimensionless', 1],
['percent', 'percent', 100],
['ppm', 'ppm', 1000000]
]
......
......@@ -516,6 +516,7 @@ def _generate_units_json(all_metainfo) -> Tuple[Any, Any]:
'label': 'Kilogram',
'abbreviation': 'kg',
},
# TODO: Could the dimensionless quantities be added programmatically?
# Dimensionless
{
'name': 'dimensionless',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment