diff options
Diffstat (limited to 'testes/code.lua')
| -rw-r--r-- | testes/code.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testes/code.lua b/testes/code.lua index e12f3f91..34b04668 100644 --- a/testes/code.lua +++ b/testes/code.lua | |||
| @@ -144,10 +144,10 @@ check(function (a,b,c,d) return a..b..c..d end, | |||
| 144 | 'MOVE', 'MOVE', 'MOVE', 'MOVE', 'CONCAT', 'RETURN1') | 144 | 'MOVE', 'MOVE', 'MOVE', 'MOVE', 'CONCAT', 'RETURN1') |
| 145 | 145 | ||
| 146 | -- not | 146 | -- not |
| 147 | check(function () return not not nil end, 'LOADBOOL', 'RETURN1') | 147 | check(function () return not not nil end, 'LOADFALSE', 'RETURN1') |
| 148 | check(function () return not not kFalse end, 'LOADBOOL', 'RETURN1') | 148 | check(function () return not not kFalse end, 'LOADFALSE', 'RETURN1') |
| 149 | check(function () return not not true end, 'LOADBOOL', 'RETURN1') | 149 | check(function () return not not true end, 'LOADTRUE', 'RETURN1') |
| 150 | check(function () return not not k3 end, 'LOADBOOL', 'RETURN1') | 150 | check(function () return not not k3 end, 'LOADTRUE', 'RETURN1') |
| 151 | 151 | ||
| 152 | -- direct access to locals | 152 | -- direct access to locals |
| 153 | check(function () | 153 | check(function () |
| @@ -194,7 +194,7 @@ check(function () | |||
| 194 | local a,b | 194 | local a,b |
| 195 | a[kTrue] = false | 195 | a[kTrue] = false |
| 196 | end, | 196 | end, |
| 197 | 'LOADNIL', 'LOADBOOL', 'SETTABLE', 'RETURN0') | 197 | 'LOADNIL', 'LOADTRUE', 'SETTABLE', 'RETURN0') |
| 198 | 198 | ||
| 199 | 199 | ||
| 200 | -- equalities | 200 | -- equalities |
