summaryrefslogtreecommitdiff
path: root/test/implementation/if.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-20 18:40:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-20 18:40:33 +0800
commit67f6a20b27c98788843883c3712c648e110d781f (patch)
tree209705e0bc3c2c44d5ffade78cc2c7041eeffdda /test/implementation/if.lua
parenta65a1ddb13854c2dfde4c04630a0a942abdafa32 (diff)
downloadlua-language-server-67f6a20b27c98788843883c3712c648e110d781f.zip
转移目录
Diffstat (limited to 'test/implementation/if.lua')
-rw-r--r--test/implementation/if.lua106
1 files changed, 0 insertions, 106 deletions
diff --git a/test/implementation/if.lua b/test/implementation/if.lua
deleted file mode 100644
index 0da8be1a..00000000
--- a/test/implementation/if.lua
+++ /dev/null
@@ -1,106 +0,0 @@
-TEST [[
-<!x!> = 1
-if 1 then
- x = 1
-else
- <?x?> = 1
-end
-]]
-
-TEST [[
-<!x!> = 1
-if 1 then
- <!x!> = 1
-else
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-if 1 then
- <!x!> = 1
-elseif 1 then
- <!x!> = 1
-else
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-if 1 then
- <!x!> = 1
-elseif 1 then
- <!x!> = 1
- if 1 then
- <!x!> = 1
- end
-else
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-while true do
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-for _ in _ do
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-for _ = 1, 1 do
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-x3 = 1
-repeat
- <!x3!> = 1
-until <?x3?> == 1
-]]
-
-TEST [[
-<!x!> = 1
-repeat
- <!x!> = 1
-until 1
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-while 1 do
- x = 1
- <!x!> = 1
-end
-<?x?> = 1
-]]
-
-TEST [[
-<!x!> = 1
-if 1 then
- if 1 then
- x = 1
- end
-else
- if 1 then
- <?x?> = 1
- end
-end
-]]