From 437a5b07d415e1a74160ddfd804017171d6cc5cb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 28 Dec 2018 15:42:34 -0200 Subject: Added a warning system to Lua The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program. --- testes/api.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'testes/api.lua') diff --git a/testes/api.lua b/testes/api.lua index 6f35e132..b4d63866 100644 --- a/testes/api.lua +++ b/testes/api.lua @@ -111,6 +111,20 @@ do -- testing 'rotate' tcheck(t, {10, 20, 30, 40}) end + +-- testing warnings +T.testC([[ + warning "*This " + warning "warning " + warning "should be in a" + warning " single line +" + warning "*This should be " + warning "another warning +" +]]) + + -- testing message handlers do local f = T.makeCfunc[[ -- cgit v1.2.3-55-g6feb