diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-23 11:36:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-23 11:36:09 -0300 |
commit | 9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed (patch) | |
tree | 50d7ec68ff36d2fa017b970b11985c6cce5861aa /testes/api.lua | |
parent | 50fd8d03c33bbe52ac5b34c4eb748197b349cedd (diff) | |
download | lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.tar.gz lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.tar.bz2 lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.zip |
Details (typos in comments)
Diffstat (limited to 'testes/api.lua')
-rw-r--r-- | testes/api.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/api.lua b/testes/api.lua index 49e3f9b9..b3791654 100644 --- a/testes/api.lua +++ b/testes/api.lua | |||
@@ -114,7 +114,7 @@ end | |||
114 | 114 | ||
115 | -- testing warnings | 115 | -- testing warnings |
116 | T.testC([[ | 116 | T.testC([[ |
117 | warningC "#This shold be a" | 117 | warningC "#This should be a" |
118 | warningC " single " | 118 | warningC " single " |
119 | warning "warning" | 119 | warning "warning" |
120 | warningC "#This should be " | 120 | warningC "#This should be " |
@@ -162,7 +162,7 @@ do -- test returning more results than fit in the caller stack | |||
162 | end | 162 | end |
163 | 163 | ||
164 | 164 | ||
165 | do -- testing multipe returns | 165 | do -- testing multiple returns |
166 | local function foo (n) | 166 | local function foo (n) |
167 | if n > 0 then return n, foo(n - 1) end | 167 | if n > 0 then return n, foo(n - 1) end |
168 | end | 168 | end |
@@ -902,7 +902,7 @@ F = function (x) | |||
902 | assert(T.udataval(A) == B) | 902 | assert(T.udataval(A) == B) |
903 | debug.getmetatable(A) -- just access it | 903 | debug.getmetatable(A) -- just access it |
904 | end | 904 | end |
905 | A = x -- ressurect userdata | 905 | A = x -- resurrect userdata |
906 | B = udval | 906 | B = udval |
907 | return 1,2,3 | 907 | return 1,2,3 |
908 | end | 908 | end |