Skip to content

Commit f8d6190

Browse files
committed
fixing tests
1 parent 74ee01f commit f8d6190

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/SwiftVizScaleTests/PointScaleTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class PointScaleTests: XCTestCase {
111111

112112
let rangeLoc = initial.scale("1")
113113
XCTAssertNotNil(rangeLoc)
114-
XCTAssertEqual(rangeLoc, 0)
114+
XCTAssertEqual(rangeLoc, 25)
115115
}
116116

117117
func testScaleWithRangeUpdate() throws {
@@ -121,7 +121,7 @@ class PointScaleTests: XCTestCase {
121121
let rangeLoc = initial.scale("2", from: 0, to: 50)
122122
XCTAssertNotNil(rangeLoc)
123123
if let rangeLocDouble = rangeLoc?.toDouble() {
124-
XCTAssertEqual(rangeLocDouble, 16.666, accuracy: 0.001)
124+
XCTAssertEqual(rangeLocDouble, 25, accuracy: 0.001)
125125
}
126126
}
127127

@@ -168,14 +168,14 @@ class PointScaleTests: XCTestCase {
168168
var rangeLoc = initial.scale("2", from: 0, to: 50)
169169
XCTAssertNotNil(rangeLoc)
170170
if let rangeLocDouble = rangeLoc?.toDouble() {
171-
XCTAssertEqual(rangeLocDouble, 20, accuracy: 0.001)
171+
XCTAssertEqual(rangeLocDouble, 25, accuracy: 0.001)
172172
}
173173

174174
let updated = initial.round(true)
175175
rangeLoc = updated.scale("1", from: 0, to: 50)
176176
XCTAssertNotNil(rangeLoc)
177177
if let rangeLocDouble = rangeLoc?.toDouble() {
178-
XCTAssertEqual(rangeLocDouble, 10.0, accuracy: 0.001)
178+
XCTAssertEqual(rangeLocDouble, 15.0, accuracy: 0.001)
179179
}
180180
}
181181

0 commit comments

Comments
 (0)