diff options
Diffstat (limited to 'spec/outputs/unicode/string.lua')
-rw-r--r-- | spec/outputs/unicode/string.lua | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/spec/outputs/unicode/string.lua b/spec/outputs/unicode/string.lua new file mode 100644 index 0000000..6bfb033 --- /dev/null +++ b/spec/outputs/unicode/string.lua | |||
@@ -0,0 +1,53 @@ | |||
1 | local _u4f60_u597d = "你好" | ||
2 | local _u95ee_u5019 = "啥事,好吧" | ||
3 | _u6253_u5370(_u4f60_u597d) | ||
4 | local _u55ef = '嗯' | ||
5 | local _u8fd9_u91cc, _u53e6_u4e00_u4e2a = "好的", '世界' | ||
6 | local _u5440 = "YU'M" | ||
7 | _u4f60('我说:"嗯"') | ||
8 | _u6253_u5370(_u5440, _u4f60) | ||
9 | _u53e6_u4e00_u4e2a = [[ 你好 世界 ]] | ||
10 | local _u4f60_u597d__u90a3_u91cc = [[ 你好呀 | ||
11 | ]] | ||
12 | local _u597d_u5427 = [==[ "helo" ]==] | ||
13 | local _u54c8_u55bd = [===[ eat noots]===] | ||
14 | local _u55ef_u55ef = [[well trhere]] | ||
15 | local _u6587_u5b57 = [[ | ||
16 | nil | ||
17 | Fail to compile | ||
18 | ]] | ||
19 | _u6587_u5b57[ [[abc]]] = [["#{变量i}" for 变量i = 1, 10] for 变量i = 1, 10]] | ||
20 | local _u54e6_u54e6 = "" | ||
21 | local _u53d8_u91cfx = "\\" | ||
22 | _u53d8_u91cfx = "a\\b" | ||
23 | _u53d8_u91cfx = "\\\n" | ||
24 | _u53d8_u91cfx = "\"" | ||
25 | local _u53d8_u91cfa = "你好 " .. tostring(_u95ee_u5019) .. " 你好" | ||
26 | local _u53d8_u91cfb = tostring(_u95ee_u5019) .. " 你好" | ||
27 | local _u53d8_u91cfc = "你好 " .. tostring(5 + 1) | ||
28 | local _u53d8_u91cfd = tostring(_u4f60_u597d(_u4e16_u754c)) | ||
29 | local _u53d8_u91cfe = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3) | ||
30 | local _u53d8_u91cff = [[你好 #{世界} 世界]] | ||
31 | local _u53d8_u91cfg = "#{你好 世界}" | ||
32 | _u53d8_u91cfa = '你好 #{问候} 你好' | ||
33 | _u53d8_u91cfb = '#{问候} 你好' | ||
34 | _u53d8_u91cfc = '你好 #{问候}' | ||
35 | local _u53d8_u91cf_ = "你好" | ||
36 | local _call_0 = ("你好") | ||
37 | _call_0["格式"](_call_0, 1) | ||
38 | local _call_1 = ("你好") | ||
39 | _call_1["格式"](_call_1, 1, 2, 3) | ||
40 | local _call_2 = ("你好") | ||
41 | _call_2["格式"](_call_2, 1, 2, 3)(1, 2, 3) | ||
42 | local _call_3 = ("你好") | ||
43 | _call_3["世界"](_call_3) | ||
44 | local _call_4 = ("你好") | ||
45 | _call_4["格式"](_call_4)["问候"](1, 2, 3) | ||
46 | local _call_5 = ("你好") | ||
47 | _call_5["格式"](_call_5, 1, 2, 3) | ||
48 | local _call_6 = _u67d0_u4e8b("你好") | ||
49 | _call_6["世界"](_call_6) | ||
50 | return _u67d0_u4e8b((function() | ||
51 | local _call_7 = ("你好") | ||
52 | return _call_7["世界"](_call_7) | ||
53 | end)()) | ||