SensorDataHighGlucoseEventTests.swift 525 B

12345678910111213141516171819202122
  1. //
  2. // SensorDataHighGlucoseEventTests.swift
  3. // RileyLink
  4. //
  5. // Created by Timothy Mecklem on 12/6/16.
  6. // Copyright © 2016 Pete Schwamb. All rights reserved.
  7. //
  8. import XCTest
  9. @testable import MinimedKit
  10. class SensorDataHighGlucoseEventTests: XCTestCase {
  11. func testDecoding() {
  12. let rawData = Data(hexadecimalString: "07FF")!
  13. let subject = SensorDataHighGlucoseEvent(availableData: rawData, relativeTimestamp: DateComponents())!
  14. XCTAssertEqual(subject.sgv, 400)
  15. }
  16. }