Skip to content

Commit

Permalink
add test that would fail if message summary first wasn't interpreted …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
roznet committed Oct 29, 2023
1 parent aebd7b0 commit ecc5994
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ConnectStatsTests/GCTestActivityFitFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ class GCTestActivityFitFile: XCTestCase {
// Adding a Tolerance of 1 sec as one of the transition elapsed time is of by 0.1 sec or so.
XCTAssertGreaterThanOrEqual(activity.startTime, shouldBeAfter.addingTimeInterval(TimeInterval(-1.0)))
}
if let points = activity.trackpoints {
let laps = activity.lapCount()
XCTAssertGreaterThan(points.count, 0)
XCTAssertGreaterThan(laps, 0)
}else{
XCTAssertTrue(false)
}
lastEndTime = activity.endTime
}
}
Expand Down

0 comments on commit ecc5994

Please sign in to comment.