Commit graph

4 commits

Author SHA1 Message Date
Matthew Wild
f8f90ea923 util.datetime: Add some missing test cases
You guessed it, mutation testing.
2022-10-08 23:55:22 +01:00
Kim Alvefur
c85c18b03a util.datetime: Add support for sub-second precision timestamps
Lua since 5.3 raises a fuss when time functions are handed a number with
a fractional part and the underlying C functions are all based on
integer seconds without support for more precision.
2022-08-14 16:57:31 +02:00
Kim Alvefur
d79609ddc9 util.datetime: Fix argument order in tests
The expected value goes first.
2022-08-14 16:51:10 +02:00
Kim Alvefur
bd3b534ab9 util.datetime: Add tests 2017-11-19 20:51:53 +01:00