| 12345678910111213141516171819202122232425 |
- //
- // SensorCalFactorGlucoseEventTests.swift
- // RileyLink
- //
- // Created by Timothy Mecklem on 10/18/16.
- // Copyright © 2016 Pete Schwamb. All rights reserved.
- //
- import XCTest
- @testable import MinimedKit
- class SensorCalFactorGlucoseEventTests: XCTestCase {
-
- func testDecoding() {
- let rawData = Data(hexadecimalString: "0f4f67130f128c")!
- let subject = SensorCalFactorGlucoseEvent(availableData: rawData, relativeTimestamp: DateComponents())!
-
- let expectedTimestamp = DateComponents(calendar: Calendar(identifier: .gregorian),
- year: 2015, month: 5, day: 19, hour: 15, minute: 39)
- XCTAssertEqual(subject.timestamp, expectedTimestamp)
- XCTAssertEqual(subject.factor, 4.748)
- }
-
- }
|