Added tests for string reuse by the scanner

This commit is contained in:
Roberto Ierusalimschy
2021-08-11 11:19:33 -03:00
parent e2c07dcbf7
commit 59acd79c05
2 changed files with 25 additions and 1 deletions

View File

@@ -241,7 +241,7 @@ do -- named objects (field '__name')
assert(o == x)
return "ABC"
end})
a, b, c = T.testC("pushint 10; Ltolstring -2; return 3", x)
local a, b, c = T.testC("pushint 10; Ltolstring -2; return 3", x)
assert(a == x and b == 10 and c == "ABC")
end
end