DPITests.swift 433 B

12345678910111213141516171819
  1. //
  2. // DPITests.swift
  3. // PDFGenerator
  4. //
  5. // Created by Suguru Kishimoto on 7/23/16.
  6. //
  7. //
  8. import XCTest
  9. @testable import PDFGenerator
  10. class DPITests: XCTestCase {
  11. func test() {
  12. XCTAssertEqual(DPIType.default.value, 72.0)
  13. XCTAssertEqual(DPIType.dpi_300.value, 300.0)
  14. XCTAssertEqual(DPIType.custom(100.0).value, 100.0)
  15. XCTAssertEqual(DPIType.custom(-100.0).value, DPIType.default.value)
  16. }
  17. }