diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-20 18:40:33 +0800 |
commit | 67f6a20b27c98788843883c3712c648e110d781f (patch) | |
tree | 209705e0bc3c2c44d5ffade78cc2c7041eeffdda /test/implementation/if.lua | |
parent | a65a1ddb13854c2dfde4c04630a0a942abdafa32 (diff) | |
download | lua-language-server-67f6a20b27c98788843883c3712c648e110d781f.zip |
转移目录
Diffstat (limited to 'test/implementation/if.lua')
-rw-r--r-- | test/implementation/if.lua | 106 |
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 -]] |