summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/type_inference/init.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/server/test/type_inference/init.lua b/server/test/type_inference/init.lua
index 36e28aec..8f5909c0 100644
--- a/server/test/type_inference/init.lua
+++ b/server/test/type_inference/init.lua
@@ -89,10 +89,22 @@ TEST 'integer' [[
<?x?> = ~ y
]]
-TEST 'boolean' [[
+TEST 'number' [[
+local a = true
+local b = 1
<?x?> = a and b
]]
+TEST 'number' [[
+local a = false
+local b = 1
+<?x?> = a or b
+]]
+
+TEST 'boolean' [[
+<?x?> = a == b
+]]
+
TEST 'integer' [[
<?x?> = a << b
]]