From f594c7eeb280fcbf7d1cecef0bf480bae413e183 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 21 Jul 2023 11:19:52 -0300 Subject: [PATCH] tests: add case for // operator See #673. --- spec/cli/gen_spec.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/cli/gen_spec.lua b/spec/cli/gen_spec.lua index fc4d5e976..2d79e03ad 100644 --- a/spec/cli/gen_spec.lua +++ b/spec/cli/gen_spec.lua @@ -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") @@ -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)