Skip to content

Commit

Permalink
README file updated and test added
Browse files Browse the repository at this point in the history
  • Loading branch information
firefly-cpp committed Jan 1, 2016
1 parent 2bab168 commit 0a84f5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Data extracted:
- calories burned during workout (as estimated by device)
- average, max and min heart rate during workout
- average pace during workout
- average altitude during workout

## Installation

Expand Down
3 changes: 3 additions & 0 deletions test_tcxparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def test_hr_avg(self):

def test_pace(self):
self.assertEquals(self.tcx.pace, '07:05')

def test_altitude_avg_is_correct(self):
self.assertAlmostEqual(self.tcx.altitude_avg, 172.020056184)

if __name__ == '__main__':
unittest.main()

0 comments on commit 0a84f5b

Please sign in to comment.