summaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/string.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-01-28 18:43:14 +0800
committerLi Jin <dragon-fly@qq.com>2026-01-28 18:43:14 +0800
commitdd64edd58fe25ec74ae5958128cf3f74b0692f3b (patch)
tree0f2de1df55897e2713977c5a53936757e14b477a /spec/outputs/unicode/string.lua
parent7c2a92b82e9808d3c5ea29b47d1c59d663fe984a (diff)
downloadyuescript-dd64edd58fe25ec74ae5958128cf3f74b0692f3b.tar.gz
yuescript-dd64edd58fe25ec74ae5958128cf3f74b0692f3b.tar.bz2
yuescript-dd64edd58fe25ec74ae5958128cf3f74b0692f3b.zip
Fixed compiler issues and added 800+ test cases.
Diffstat (limited to 'spec/outputs/unicode/string.lua')
-rw-r--r--spec/outputs/unicode/string.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/outputs/unicode/string.lua b/spec/outputs/unicode/string.lua
index 6bfb033..2fbf0fa 100644
--- a/spec/outputs/unicode/string.lua
+++ b/spec/outputs/unicode/string.lua
@@ -33,21 +33,21 @@ _u53d8_u91cfa = '你好 #{问候} 你好'
33_u53d8_u91cfb = '#{问候} 你好' 33_u53d8_u91cfb = '#{问候} 你好'
34_u53d8_u91cfc = '你好 #{问候}' 34_u53d8_u91cfc = '你好 #{问候}'
35local _u53d8_u91cf_ = "你好" 35local _u53d8_u91cf_ = "你好"
36local _call_0 = ("你好") 36local _call_0 = "你好"
37_call_0["格式"](_call_0, 1) 37_call_0["格式"](_call_0, 1)
38local _call_1 = ("你好") 38local _call_1 = "你好"
39_call_1["格式"](_call_1, 1, 2, 3) 39_call_1["格式"](_call_1, 1, 2, 3)
40local _call_2 = ("你好") 40local _call_2 = "你好"
41_call_2["格式"](_call_2, 1, 2, 3)(1, 2, 3) 41_call_2["格式"](_call_2, 1, 2, 3)(1, 2, 3)
42local _call_3 = ("你好") 42local _call_3 = "你好"
43_call_3["世界"](_call_3) 43_call_3["世界"](_call_3)
44local _call_4 = ("你好") 44local _call_4 = "你好"
45_call_4["格式"](_call_4)["问候"](1, 2, 3) 45_call_4["格式"](_call_4)["问候"](1, 2, 3)
46local _call_5 = ("你好") 46local _call_5 = "你好"
47_call_5["格式"](_call_5, 1, 2, 3) 47_call_5["格式"](_call_5, 1, 2, 3)
48local _call_6 = _u67d0_u4e8b("你好") 48local _call_6 = _u67d0_u4e8b("你好")
49_call_6["世界"](_call_6) 49_call_6["世界"](_call_6)
50return _u67d0_u4e8b((function() 50return _u67d0_u4e8b((function()
51 local _call_7 = ("你好") 51 local _call_7 = "你好"
52 return _call_7["世界"](_call_7) 52 return _call_7["世界"](_call_7)
53end)()) 53end)())