Skip to content

Commit beda6d7

Browse files
committed
Fix deprecated function usage in tests
1 parent a1e0a3d commit beda6d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/MessagePackTests/ConveniencePropertiesTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ class ConveniencePropertiesTests: XCTestCase {
7777

7878
var floatValue = MessagePackValue.float(3.14).floatValue
7979
XCTAssertNotNil(floatValue)
80-
XCTAssertEqualWithAccuracy(floatValue!, 3.14, accuracy: 0.0001)
80+
XCTAssertEqual(floatValue!, 3.14, accuracy: 0.0001)
8181

8282
floatValue = MessagePackValue.double(3.14).floatValue
8383
XCTAssertNotNil(floatValue)
84-
XCTAssertEqualWithAccuracy(floatValue!, 3.14, accuracy: 0.0001)
84+
XCTAssertEqual(floatValue!, 3.14, accuracy: 0.0001)
8585
}
8686

8787
func testDoubleValue() {
8888
XCTAssert(MessagePackValue.nil.doubleValue == nil)
8989

9090
var doubleValue = MessagePackValue.float(3.14).doubleValue
9191
XCTAssertNotNil(doubleValue)
92-
XCTAssertEqualWithAccuracy(doubleValue!, 3.14, accuracy: 0.0001)
92+
XCTAssertEqual(doubleValue!, 3.14, accuracy: 0.0001)
9393

9494
doubleValue = MessagePackValue.double(3.14).doubleValue
9595
XCTAssertNotNil(doubleValue)
96-
XCTAssertEqualWithAccuracy(doubleValue!, 3.14, accuracy: 0.0001)
96+
XCTAssertEqual(doubleValue!, 3.14, accuracy: 0.0001)
9797
}
9898

9999
func testStringValue() {

0 commit comments

Comments
 (0)