From: daurnimator Date: Sat, 7 Nov 2015 16:33:19 +0000 (-0600) Subject: spec/tzfile_spec: Add a test to open a tz version 3 file X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/ac89c4c58d68776dfec1a54c19077a58f1eb76c6?ds=sidebyside;hp=fffe7001632c142b534df10152ae0ee6dc55e0d1 spec/tzfile_spec: Add a test to open a tz version 3 file Includes tz file for America/Godthab from 2015g release --- diff --git a/spec/Godthab.tz b/spec/Godthab.tz new file mode 100644 index 0000000..111d9a8 Binary files /dev/null and b/spec/Godthab.tz differ diff --git a/spec/tzfile_spec.lua b/spec/tzfile_spec.lua new file mode 100644 index 0000000..4f10b71 --- /dev/null +++ b/spec/tzfile_spec.lua @@ -0,0 +1,8 @@ +describe("Opening/reading tz files", function() + local tzfile = require "luatz.tzfile" + it("should be able to open a version 3 file", function() + -- The tz file for America/Godthab from 2015g + -- One of the smallest tzif3 files I have + tzfile.read_tzfile("spec/Godthab.tz") + end) +end)