lune/tests/datetime/fromIsoDate.luau

11 lines
299 B
Lua

local DateTime = require("@lune/DateTime")
assert(
DateTime.fromIsoDate("2023-08-26T16:56:28Z") ~= nil,
"expected DateTime.fromIsoDate() to return DateTime, got nil"
)
assert(
DateTime.fromIsoDate("1929-12-05T23:18:23Z") ~= nil,
"expected DateTime.fromIsoDate() to return DateTime, got nil"
)