-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more power balance test data #81
This data contains some negative power samples that result in invalid (or at least nonsense) HRM output. Also, one sample results in a negative total power (not just left or right), which causes the generated TCX file to be invalid when the Garmin Activity Extension is in play, as that extension requires that the power values are positive integers. So, this commit will fail unit testing like: ``` Error XSDError in .../test/release/test, at line 3, column 9: Content of element {http://www.garmin.com/xmlschemas/ActivityExtension/v2}Watts does not match its type definition: -57 is not valid according to xs:unsignedShort.. ``` That will be fixed in the next commit; doing so separately so that the total changes of the fix can easily distinguished from this large commit of mostly data files. Thanks to @remifreiwald for providing yet another great test data set.
- Loading branch information
Showing
40 changed files
with
26,159 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
217 changes: 217 additions & 0 deletions
217
test/polar/v2/testdata/training-sessions-1988256040-create.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
{ | ||
"calories": [ | ||
28 | ||
], | ||
"device": [ | ||
"A374391F" | ||
], | ||
"distance": [ | ||
1150.800048828125 | ||
], | ||
"duration": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"milliseconds": [ | ||
375 | ||
], | ||
"minutes": [ | ||
3 | ||
], | ||
"seconds": [ | ||
7 | ||
] | ||
} | ||
], | ||
"end": [ | ||
{ | ||
"date": [ | ||
{ | ||
"day": [ | ||
29 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2017 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
19 | ||
], | ||
"milliseconds": [ | ||
375 | ||
], | ||
"minute": [ | ||
27 | ||
], | ||
"seconds": [ | ||
4 | ||
] | ||
} | ||
], | ||
"trusted": [ | ||
0 | ||
] | ||
} | ||
], | ||
"exercise-count": [ | ||
1 | ||
], | ||
"heartrate": [ | ||
{ | ||
"average": [ | ||
124 | ||
], | ||
"maximum": [ | ||
142 | ||
] | ||
} | ||
], | ||
"heartrate-duration": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
0 | ||
], | ||
"seconds": [ | ||
24 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
1 | ||
], | ||
"seconds": [ | ||
26 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
1 | ||
], | ||
"seconds": [ | ||
16 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
0 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
0 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
], | ||
"model": [ | ||
"Polar V800" | ||
], | ||
"session-name": [ | ||
{ | ||
"text": [ | ||
"Radfahren" | ||
] | ||
} | ||
], | ||
"start": [ | ||
{ | ||
"date": [ | ||
{ | ||
"day": [ | ||
29 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2017 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
19 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minute": [ | ||
23 | ||
], | ||
"seconds": [ | ||
56 | ||
] | ||
} | ||
], | ||
"trusted": [ | ||
0 | ||
] | ||
} | ||
], | ||
"training-load": [ | ||
{ | ||
"carbs": [ | ||
62 | ||
], | ||
"fat": [ | ||
37 | ||
], | ||
"load-value": [ | ||
3 | ||
], | ||
"protein": [ | ||
1 | ||
], | ||
"recovery-time": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minutes": [ | ||
13 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.55 KB
test/polar/v2/testdata/training-sessions-1988256040-create.expected.var
Binary file not shown.
Binary file added
BIN
+94 Bytes
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-create
Binary file not shown.
129 changes: 129 additions & 0 deletions
129
.../polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-create.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
{ | ||
"calories": [ | ||
28 | ||
], | ||
"distance": [ | ||
1150.800048828125 | ||
], | ||
"duration": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"milliseconds": [ | ||
375 | ||
], | ||
"minutes": [ | ||
3 | ||
], | ||
"seconds": [ | ||
7 | ||
] | ||
} | ||
], | ||
"sensors": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
20, | ||
21, | ||
6, | ||
7, | ||
8, | ||
11, | ||
13, | ||
14, | ||
15, | ||
16, | ||
17, | ||
18, | ||
19, | ||
26, | ||
27, | ||
6, | ||
28, | ||
29, | ||
6, | ||
31, | ||
32 | ||
], | ||
"sport": [ | ||
{ | ||
"value": [ | ||
2 | ||
] | ||
} | ||
], | ||
"start": [ | ||
{ | ||
"date": [ | ||
{ | ||
"day": [ | ||
29 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2017 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
19 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minute": [ | ||
23 | ||
], | ||
"seconds": [ | ||
56 | ||
] | ||
} | ||
], | ||
"trusted": [ | ||
0 | ||
] | ||
} | ||
], | ||
"training-load": [ | ||
{ | ||
"carbs": [ | ||
62 | ||
], | ||
"fat": [ | ||
37 | ||
], | ||
"load-value": [ | ||
3 | ||
], | ||
"protein": [ | ||
1 | ||
], | ||
"recovery-time": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minutes": [ | ||
13 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file added
BIN
+1.53 KB
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-create.expected.var
Binary file not shown.
Empty file.
2 changes: 2 additions & 0 deletions
2
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-laps.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
Binary file added
BIN
+4 Bytes
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-laps.expected.var
Binary file not shown.
Binary file added
BIN
+20 Bytes
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-route
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-route.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
Binary file added
BIN
+4 Bytes
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-route.expected.var
Binary file not shown.
Binary file added
BIN
+9.52 KB
test/polar/v2/testdata/training-sessions-1988256040-exercises-1994746600-samples
Binary file not shown.
Oops, something went wrong.