Skip to content

Conversation

Vindaar
Copy link
Member

@Vindaar Vindaar commented Oct 19, 2022

Fixes issue #29, which appeared because we lacked a single test that combines an SI and an imperial unit under * or /.

`simplify` and `flatten` are not enough!
Here we have to make a new unit product, as we need to apply the power
to the base units. As a `UnitProduct` is a ref type we have to be
careful not to modify the initial `conversion` `UnitProduct`.
We simply lacked tests for imperial units with multiplication or
division! That's how we didn't catch this regression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant