Add spec generator for gigasecond#634
Conversation
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
|
|
||
| function gigasecond.anniversary(any_date) | ||
| return os.date('%x', any_date + math.pow(10, 9)) | ||
| return os.date('!%x', any_date + math.pow(10, 9)) |
There was a problem hiding this comment.
I had no idea this was a thing. For anyone else that is unfamiliar, this tells it to use UTC instead of local time.
I did some work adding this exercise to MoonScript so I thought I'd adapt the spec generator for the Lua track.