Skip to content

Commit

Permalink
tests: add case for // operator
Browse files Browse the repository at this point in the history
See #673.
  • Loading branch information
hishamhm committed Jul 21, 2023
1 parent c103fa7 commit f594c7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/cli/gen_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ describe("tl gen", function()
local foo = require("nonexisting")
local y = 2 | (foo.wat << 9)
local x = ~y
local z = aa // bb
]])
local pd = io.popen(util.tl_cmd("gen", "--gen-target=5.1", name), "r")
local output = pd:read("*a")
Expand All @@ -221,6 +222,7 @@ describe("tl gen", function()
local foo = require("nonexisting")
local y = bit32.bor(2, (bit32.lshift(foo.wat, 9)))
local x = bit32.bnot(y)
local z = math.floor(aa / bb)
]], util.read_file(lua_name))
end)
end)
Expand Down

0 comments on commit f594c7e

Please sign in to comment.