diff --git a/FlipcashCoreVectors/Tests/FlipcashCoreVectorsTests/MultiPaymentIntentVectorTests.swift b/FlipcashCoreVectors/Tests/FlipcashCoreVectorsTests/MultiPaymentIntentVectorTests.swift index a944a8a65..39f7f6d34 100644 --- a/FlipcashCoreVectors/Tests/FlipcashCoreVectorsTests/MultiPaymentIntentVectorTests.swift +++ b/FlipcashCoreVectors/Tests/FlipcashCoreVectorsTests/MultiPaymentIntentVectorTests.swift @@ -170,11 +170,7 @@ import FlipcashAPI #expect(proto.hasDestinationOwner) #expect(proto.destinationOwner == (try Self.key(expected.destinationOwnerSeed)).solanaAccountID) #expect(String(proto.clientExchangeData.quarks) == expected.quarks) - // `native_amount` is a double on the wire; `Decimal.doubleValue` divides by ten per - // digit, so it can land an ulp or so from the correctly rounded value. - let native = try #require(Double(expected.nativeAmount)) - #expect(abs(proto.clientExchangeData.nativeAmount - native) <= native * 1e-12, - "native \(proto.clientExchangeData.nativeAmount) vs \(expected.nativeAmount)") + #expect(proto.clientExchangeData.nativeAmount == (try #require(Double(expected.nativeAmount)))) #expect(proto.clientExchangeData.coreMintFiatExchangeRate.exchangeRate.currencyCode == expected.currency) } }