GetGlucosePageMessageBodyTests.swift 478 B

123456789101112131415161718192021
  1. //
  2. // GetGlucosePageMessageBodyTests.swift
  3. // RileyLink
  4. //
  5. // Created by Timothy Mecklem on 10/19/16.
  6. // Copyright © 2016 Pete Schwamb. All rights reserved.
  7. //
  8. import XCTest
  9. @testable import MinimedKit
  10. class GetGlucosePageMessageBodyTests: XCTestCase {
  11. func testTxDataEncoding() {
  12. let messageBody = GetGlucosePageMessageBody(pageNum: 13)
  13. XCTAssertEqual(messageBody.txData.subdata(in: 0..<5).hexadecimalString, "040000000d")
  14. }
  15. }