Skip to content

Commit c8786c9

Browse files
committed
Handle undefined values in is_true and is_false
1 parent 12f63d6 commit c8786c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

procedures/more.proc

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ endproc
254254
procedure is_true: .got, .msg$
255255
@_start_test()
256256

257-
if .got
257+
if .got != undefined and .got
258258
@pass: .msg$
259259
else
260260
@fail: .msg$
@@ -280,7 +280,7 @@ endproc
280280
procedure is_false: .got, .msg$
281281
@_start_test()
282282

283-
if !.got
283+
if .got != undefined and !.got
284284
@pass: .msg$
285285
else
286286
@fail: .msg$

0 commit comments

Comments
 (0)