Skip to content

Commit

Permalink
test coverage update
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Mar 11, 2022
1 parent 48e78ce commit c78b77f
Show file tree
Hide file tree
Showing 3 changed files with 10,593 additions and 10,578 deletions.
15 changes: 15 additions & 0 deletions Tests/SwiftVizTests/TickTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,19 @@ final class TickTests: XCTestCase {
}
XCTAssertEqual(tick.label, "")
}

func testDefaultTicksInt() {
let scale = LinearScale.IntScale(from: 0, to: 10)
XCTAssertEqual(scale.ticks(rangeLower: 0, rangeHigher: 100).count, 10)
}

func testDefaultTicksFloat() {
let scale = LinearScale.FloatScale(from: 0, to: 10)
XCTAssertEqual(scale.ticks(rangeLower: 0, rangeHigher: 100).count, 6)
}

func testDefaultTicksDouble() {
let scale = LinearScale.DoubleScale(from: 0, to: 10)
XCTAssertEqual(scale.ticks(rangeLower: 0, rangeHigher: 100).count, 6)
}
}
Loading

0 comments on commit c78b77f

Please sign in to comment.