diff options
author | Caleb Maclennan <caleb@alerque.com> | 2020-10-01 16:20:03 +0300 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2020-10-09 13:51:40 +0300 |
commit | 9a3f4bb506b17f6c581dc2736a5c56a4e2c8704f (patch) | |
tree | 0019d3499ba12d6be52ed66fbde752e680869d47 /spec | |
parent | 74ff4fa7d2fc588d46a19558fc190ccfb7a2c701 (diff) |
test: Port date serialization test to Busted
Diffstat (limited to 'spec')
-rw-r--r-- | spec/date_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/date_spec.lua b/spec/date_spec.lua new file mode 100644 index 0000000..0a02744 --- /dev/null +++ b/spec/date_spec.lua @@ -0,0 +1,11 @@ +local Date = require("pl.Date") + +describe("pl.Date:__tostring()", function () + + it("should be suitable for serialization", function () + local df = Date.Format() + local du = df:parse("2008-07-05") + assert.is.equal(du, du:toUTC()) + end) + +end) |