exercism / d

Exercism exercises in D.
https://exercism.org/tracks/d
MIT License
19 stars 31 forks source link

Convert `average_run_time` to an integer #200

Closed ErikSchierboom closed 1 year ago

ErikSchierboom commented 1 year ago

Convert average_run_time to an integer.

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.

This PR has been created as a draft and we will automatically merge it next week once the new configlet release is out.

See https://github.com/exercism/docs/pull/430 for more information.