From 20b161e2859837e4f7fb1c19440ad7efe1588f1f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Apr 2019 12:31:29 -0300 Subject: [PATCH] Small correction in test about 'isdst' The field 'isdst' can be false, so we cannot test its absence with 'if not D.isdst'; we must compare with nil for a correct test. --- testes/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testes/files.lua b/testes/files.lua index 0a05cf60..38d3a669 100644 --- a/testes/files.lua +++ b/testes/files.lua @@ -832,7 +832,7 @@ load(os.date([[!assert(D.year==%Y and D.month==%m and D.day==%d and do local D = os.date("*t") local t = os.time(D) - if not D.isdst then + if D.isdst == nil then print("no daylight saving information") else assert(type(D.isdst) == 'boolean')