Skip to content

Commit a093eaa

Browse files
Convert average_run_time to an integer. (exercism#3464)
There are two reasons for this change: 1. Having the average run time as a float gives the impression of being exact, whereas the actual run time wildly varies due to a wide variety of reasons (e.g. how busy it is on the server). That fractional component will almost never actually conform the real situation. 2. jq is often used to work with track config.json config files (e.g. to add elements to it), and it will remove any trailing .0 fractional part from a number, which caused configlet lint to fail. Those JQ scripts then have to work around this by manually adding .0 to it.
1 parent 6dcb660 commit a093eaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"highlightjs_language": "python"
1717
},
1818
"test_runner": {
19-
"average_run_time": 2.0
19+
"average_run_time": 2
2020
},
2121
"files": {
2222
"solution": ["%{snake_slug}.py"],

0 commit comments

Comments
 (0)