aboutsummaryrefslogtreecommitdiff
path: root/testes/all.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/all.lua')
-rw-r--r--testes/all.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/testes/all.lua b/testes/all.lua
index 42809b9a..db074dd8 100644
--- a/testes/all.lua
+++ b/testes/all.lua
@@ -5,8 +5,8 @@
5 5
6local version = "Lua 5.4" 6local version = "Lua 5.4"
7if _VERSION ~= version then 7if _VERSION ~= version then
8 warn("This test suite is for ", version, 8 io.stderr:write("This test suite is for ", version,
9 ", not for ", _VERSION, "\nExiting tests") 9 ", not for ", _VERSION, "\nExiting tests")
10 return 10 return
11end 11end
12 12
@@ -210,6 +210,7 @@ if #msgs > 0 then
210end 210end
211 211
212print("(there should be two warnings now)") 212print("(there should be two warnings now)")
213warn("@on")
213warn("#This is ", "an expected", " warning") 214warn("#This is ", "an expected", " warning")
214warn("@off") 215warn("@off")
215warn("******** THIS WARNING SHOULD NOT APPEAR **********") 216warn("******** THIS WARNING SHOULD NOT APPEAR **********")