SensorErrorGlucoseEventTests.swift 554 B

123456789101112131415161718192021
  1. //
  2. // SensorErrorGlucoseEventTests.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 SensorErrorGlucoseEventTests: XCTestCase {
  11. func testDecoding() {
  12. let rawData = Data(hexadecimalString: "0501")!
  13. let subject = SensorErrorGlucoseEvent(availableData: rawData, relativeTimestamp: DateComponents())!
  14. XCTAssertEqual(subject.dictionaryRepresentation["errorType"] as! String, "end")
  15. }
  16. }