aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-07-02 16:47:12 +0800
committerLi Jin <dragon-fly@qq.com>2023-07-02 16:47:12 +0800
commit7775f4c5b97dcc0d7e71a2cd8fb132f2b5bc1bd6 (patch)
treeb980a68dfed0139d3e61b1477f52da783c6f610b /spec
parent85a2da5cbbbbfb27f3b65ac67d083dd2443d223d (diff)
downloadyuescript-0.17.5.tar.gz
yuescript-0.17.5.tar.bz2
yuescript-0.17.5.zip
fix issue https://github.com/leafo/moonscript/issues/448v0.17.5
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/string.yue1
-rw-r--r--spec/outputs/string.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/inputs/string.yue b/spec/inputs/string.yue
index 201e60d..f91383e 100644
--- a/spec/inputs/string.yue
+++ b/spec/inputs/string.yue
@@ -51,6 +51,7 @@ d = "#{hello world}"
51e = "#{1} #{2} #{3}" 51e = "#{1} #{2} #{3}"
52 52
53f = [[hello #{world} world]] 53f = [[hello #{world} world]]
54g = "\#{hello world}"
54 55
55-- 56--
56 57
diff --git a/spec/outputs/string.lua b/spec/outputs/string.lua
index 87ecf2c..febea62 100644
--- a/spec/outputs/string.lua
+++ b/spec/outputs/string.lua
@@ -29,6 +29,7 @@ local c = "hello " .. tostring(5 + 1)
29local d = tostring(hello(world)) 29local d = tostring(hello(world))
30local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3) 30local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3)
31local f = [[hello #{world} world]] 31local f = [[hello #{world} world]]
32local g = "#{hello world}"
32a = 'hello #{hello} hello' 33a = 'hello #{hello} hello'
33b = '#{hello} hello' 34b = '#{hello} hello'
34c = 'hello #{hello}' 35c = 'hello #{hello}'