diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-18 17:29:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-18 17:29:46 -0300 |
commit | 9405472565cb4b0cb0c339d65babdef4d4cb7abd (patch) | |
tree | 386bcb066803310f7481b60e119748c85b13d618 /testes/main.lua | |
parent | 45948e7e55c753cf0e370b251ac1d4e7f3aabedd (diff) | |
download | lua-9405472565cb4b0cb0c339d65babdef4d4cb7abd.tar.gz lua-9405472565cb4b0cb0c339d65babdef4d4cb7abd.tar.bz2 lua-9405472565cb4b0cb0c339d65babdef4d4cb7abd.zip |
Improvement in warn-mode '@store' (for testing)
When using warn-mode '@store', from the test library, the tests ensure
not only that the expected warnings were issued, but also that there was
no extra warnings.
Diffstat (limited to 'testes/main.lua')
-rw-r--r-- | testes/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/main.lua b/testes/main.lua index 0ef4822d..36220362 100644 --- a/testes/main.lua +++ b/testes/main.lua | |||
@@ -379,12 +379,12 @@ if T then -- test library? | |||
379 | -- testing 'warn' | 379 | -- testing 'warn' |
380 | warn("@store") | 380 | warn("@store") |
381 | warn("@123", "456", "789") | 381 | warn("@123", "456", "789") |
382 | assert(_WARN == "@123456789") | 382 | assert(_WARN == "@123456789"); _WARN = nil |
383 | 383 | ||
384 | warn("zip", "", " ", "zap") | 384 | warn("zip", "", " ", "zap") |
385 | assert(_WARN == "zip zap") | 385 | assert(_WARN == "zip zap"); _WARN = nil |
386 | warn("ZIP", "", " ", "ZAP") | 386 | warn("ZIP", "", " ", "ZAP") |
387 | assert(_WARN == "ZIP ZAP") | 387 | assert(_WARN == "ZIP ZAP"); _WARN = nil |
388 | warn("@normal") | 388 | warn("@normal") |
389 | end | 389 | end |
390 | 390 | ||