Skip to content

Commit ae68334

Browse files
Fixed asserts to more convenient.
1 parent 7de0c9f commit ae68334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/web3swiftTests/localTests/BasicLocalNodeTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class BasicLocalNodeTests: LocalTestCase {
9090
print("Balance after to: " + balanceAfterTo.description)
9191
print("Balance after from: " + balanceAfterFrom.description)
9292

93-
XCTAssert(balanceAfterTo - balanceBeforeTo == valueToSend)
93+
XCTAssertEqual(balanceAfterTo - balanceBeforeTo, valueToSend)
9494
let txnGasPrice = details.transaction.meta?.gasPrice ?? 0
95-
XCTAssert(balanceBeforeFrom - (balanceAfterFrom + receipt.gasUsed * txnGasPrice) == valueToSend)
95+
XCTAssertEqual(balanceBeforeFrom - (balanceAfterFrom + receipt.gasUsed * txnGasPrice), valueToSend)
9696
}
9797
}

0 commit comments

Comments
 (0)