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
When comparing Quantities that are created with the DoubleConverterFactory and ones created "the regular way" we get unexpected failures.
That seems to be because the Units differ in their details.
e.g. the following test fails:
def "creates units that are comparable to standard Quantity creation"() {
when:
def a = Quantities.getQuantity(1.234, PowerSystemUnits.NANOSIEMENS)
def b = Quantities.getQuantity(1.234, MetricPrefix.NANO(Units.SIEMENS))
then:
a == b
}
The text was updated successfully, but these errors were encountered:
As discussed, there is no easy solution to this besides just using the units in PowerSystemUnits. These also have the advantage that they can speed up calculations with quantities.
When comparing Quantities that are created with the
DoubleConverterFactory
and ones created "the regular way" we get unexpected failures.That seems to be because the Units differ in their details.
e.g. the following test fails:
The text was updated successfully, but these errors were encountered: