aboutsummaryrefslogtreecommitdiff
path: root/testes/math.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-30 11:45:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-30 11:45:08 -0300
commitbd1b87c5790c0c6fe23f76aa360e879922e1e738 (patch)
tree49978c2dd847c7ff4ec84e1a153ca37deef79e2a /testes/math.lua
parentd7bb8df8414f71a290c8a4b1c9f7c6fe839a94df (diff)
downloadlua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.tar.gz
lua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.tar.bz2
lua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.zip
Comments (mosty typos)
Diffstat (limited to 'testes/math.lua')
-rw-r--r--testes/math.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/math.lua b/testes/math.lua
index c7dc8285..7248787b 100644
--- a/testes/math.lua
+++ b/testes/math.lua
@@ -758,7 +758,7 @@ do -- testing max/min
758 assert(eqT(math.min(maxint, maxint - 1), maxint - 1)) 758 assert(eqT(math.min(maxint, maxint - 1), maxint - 1))
759 assert(eqT(math.min(maxint - 2, maxint, maxint - 1), maxint - 2)) 759 assert(eqT(math.min(maxint - 2, maxint, maxint - 1), maxint - 2))
760end 760end
761-- testing implicit convertions 761-- testing implicit conversions
762 762
763local a,b = '10', '20' 763local a,b = '10', '20'
764assert(a*b == 200 and a+b == 30 and a-b == -10 and a/b == 0.5 and -b == -20) 764assert(a*b == 200 and a+b == 30 and a-b == -10 and a/b == 0.5 and -b == -20)