You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an interesting one because under the covers each of these units is represented as the same 'kind'. Equivalence checks to see if the scalars and the kind match up so that different expressions for the same thing will be correctly identified as equal. It seems in the case of counting units it should also be checking for the equivalence of the unit name so that:
Unit.new('3 dB') == Unit.new('3 sr') # => false
I'll have to think about the implications of that one...
At the moment, counting units appear to be treated as interchangeable.
The text was updated successfully, but these errors were encountered: