-
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.
Include test data for issue #57 in unit test runs
This includes the "expected" outputs which exhibit the existing issue. The next change(s) should fix the issue, and show the difference that the fix introduces into the generated data.
- Loading branch information
Showing
29 changed files
with
482,122 additions
and
0 deletions.
There are no files selected for viewing
220 changes: 220 additions & 0 deletions
220
test/polar/v2/testdata/training-sessions-267510822-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,220 @@ | ||
{ | ||
"benefit": [ | ||
16 | ||
], | ||
"calories": [ | ||
1638 | ||
], | ||
"device": [ | ||
"951AE11B" | ||
], | ||
"distance": [ | ||
42809.30078125 | ||
], | ||
"duration": [ | ||
{ | ||
"hours": [ | ||
1 | ||
], | ||
"milliseconds": [ | ||
250 | ||
], | ||
"minutes": [ | ||
42 | ||
], | ||
"seconds": [ | ||
7 | ||
] | ||
} | ||
], | ||
"end": [ | ||
{ | ||
"3": [ | ||
0 | ||
], | ||
"date": [ | ||
{ | ||
"day": [ | ||
1 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2015 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
14 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minute": [ | ||
0 | ||
], | ||
"seconds": [ | ||
5 | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"exercise-count": [ | ||
1 | ||
], | ||
"heartrate": [ | ||
{ | ||
"average": [ | ||
149 | ||
], | ||
"maximum": [ | ||
175 | ||
] | ||
} | ||
], | ||
"heartrate-duration": [ | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
4 | ||
], | ||
"seconds": [ | ||
17 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
1 | ||
], | ||
"minutes": [ | ||
14 | ||
], | ||
"seconds": [ | ||
59 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
20 | ||
], | ||
"seconds": [ | ||
31 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
1 | ||
], | ||
"seconds": [ | ||
47 | ||
] | ||
}, | ||
{ | ||
"hours": [ | ||
0 | ||
], | ||
"minutes": [ | ||
0 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
], | ||
"model": [ | ||
"Polar V800" | ||
], | ||
"session-name": [ | ||
{ | ||
"text": [ | ||
"Mountainbiken" | ||
] | ||
} | ||
], | ||
"start": [ | ||
{ | ||
"3": [ | ||
0 | ||
], | ||
"date": [ | ||
{ | ||
"day": [ | ||
1 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2015 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
12 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minute": [ | ||
17 | ||
], | ||
"seconds": [ | ||
52 | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"training-load": [ | ||
{ | ||
"carbs": [ | ||
64 | ||
], | ||
"fat": [ | ||
30 | ||
], | ||
"load-value": [ | ||
246 | ||
], | ||
"protein": [ | ||
6 | ||
], | ||
"recovery-time": [ | ||
{ | ||
"hours": [ | ||
18 | ||
], | ||
"milliseconds": [ | ||
650 | ||
], | ||
"minutes": [ | ||
54 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.58 KB
test/polar/v2/testdata/training-sessions-267510822-create.expected.var
Binary file not shown.
133 changes: 133 additions & 0 deletions
133
test/polar/v2/testdata/training-sessions-267510822-exercises-269166030-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,133 @@ | ||
{ | ||
"ascent": [ | ||
319.12945556640625 | ||
], | ||
"calories": [ | ||
1638 | ||
], | ||
"descent": [ | ||
444.0989990234375 | ||
], | ||
"distance": [ | ||
42809.30078125 | ||
], | ||
"duration": [ | ||
{ | ||
"hours": [ | ||
1 | ||
], | ||
"milliseconds": [ | ||
250 | ||
], | ||
"minutes": [ | ||
42 | ||
], | ||
"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 | ||
], | ||
"sport": [ | ||
{ | ||
"value": [ | ||
5 | ||
] | ||
} | ||
], | ||
"start": [ | ||
{ | ||
"3": [ | ||
0 | ||
], | ||
"date": [ | ||
{ | ||
"day": [ | ||
1 | ||
], | ||
"month": [ | ||
11 | ||
], | ||
"year": [ | ||
2015 | ||
] | ||
} | ||
], | ||
"offset": [ | ||
60 | ||
], | ||
"time": [ | ||
{ | ||
"hour": [ | ||
12 | ||
], | ||
"milliseconds": [ | ||
0 | ||
], | ||
"minute": [ | ||
17 | ||
], | ||
"seconds": [ | ||
52 | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"training-load": [ | ||
{ | ||
"carbs": [ | ||
64 | ||
], | ||
"fat": [ | ||
30 | ||
], | ||
"load-value": [ | ||
246 | ||
], | ||
"protein": [ | ||
6 | ||
], | ||
"recovery-time": [ | ||
{ | ||
"hours": [ | ||
18 | ||
], | ||
"milliseconds": [ | ||
650 | ||
], | ||
"minutes": [ | ||
54 | ||
], | ||
"seconds": [ | ||
0 | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file added
BIN
+1.56 KB
test/polar/v2/testdata/training-sessions-267510822-exercises-269166030-create.expected.var
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
test/polar/v2/testdata/training-sessions-267510822-exercises-269166030-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-267510822-exercises-269166030-laps.expected.var
Binary file not shown.
Oops, something went wrong.