Ampere icon indicating copy to clipboard operation
Ampere copied to clipboard

Adding multiplication and division to the units of measurement types in Foundation.

Results 4 Ampere issues
Sort by recently updated
recently updated
newest added

This test fails on Linux: ```swift func testWithNonBaseUnits() { let factor1 = Measurement(value: 100, unit: UnitArea.squareCentimeters) let factor2 = Measurement(value: 10, unit: UnitLength.millimeters) let actual: Measurement = factor1 * factor2...

[The bug I reported](http://www.openradar.me/27556581) about inconsistent behavior of XCTest assertions with `Measurement` values is fixed in Xcode 8 GM, so I can probably remove my custom test assertions.

This currently produces an error because `UnitForce` already conforms to `UnitProduct` for _force = mass × acceleration_ and we cannot add another conformance to the same protocol: ``` swift ///...