lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 20b161e2859837e4f7fb1c19440ad7efe1588f1f
parent ed2872cd3bf6d352f36bbd34529738a60b0b51eb
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 22 Apr 2019 12:31:02 -0300

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.

Diffstat:
Mtestes/files.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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')