diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 14:58:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 14:58:02 -0300 |
commit | b96b0b5abbf40cbdbed7952bf35a5a27ddf75928 (patch) | |
tree | 5d9d5463cb7d3424833abab20dd87bce1f4b240f /testes/literals.lua | |
parent | ca13be9af784b7288d3a07d9b5bccb329086e885 (diff) | |
download | lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.tar.gz lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.tar.bz2 lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.zip |
Added macro 'luaL_pushfail'
The macro 'luaL_pushfail' documents all places in the standard libraries
that return nil to signal some kind of failure. It is defined as
'lua_pushnil'. The manual also got a notation (@fail) to document those
returns. The tests were changed to be agnostic regarding whether 'fail'
is 'nil' or 'false'.
Diffstat (limited to 'testes/literals.lua')
-rw-r--r-- | testes/literals.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/literals.lua b/testes/literals.lua index 27f9377d..e101eabf 100644 --- a/testes/literals.lua +++ b/testes/literals.lua | |||
@@ -281,7 +281,7 @@ if os.setlocale("pt_BR") or os.setlocale("ptb") then | |||
281 | 281 | ||
282 | assert(" 0x.1 " + " 0x,1" + "-0X.1\t" == 0x0.1) | 282 | assert(" 0x.1 " + " 0x,1" + "-0X.1\t" == 0x0.1) |
283 | 283 | ||
284 | assert(tonumber"inf" == nil and tonumber"NAN" == nil) | 284 | assert(not tonumber"inf" and not tonumber"NAN") |
285 | 285 | ||
286 | assert(assert(load(string.format("return %q", 4.51)))() == 4.51) | 286 | assert(assert(load(string.format("return %q", 4.51)))() == 4.51) |
287 | 287 | ||