diff options
author | Li Jin <dragon-fly@qq.com> | 2023-07-02 16:47:12 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-07-02 16:47:12 +0800 |
commit | 7775f4c5b97dcc0d7e71a2cd8fb132f2b5bc1bd6 (patch) | |
tree | b980a68dfed0139d3e61b1477f52da783c6f610b /spec | |
parent | 85a2da5cbbbbfb27f3b65ac67d083dd2443d223d (diff) | |
download | yuescript-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.yue | 1 | ||||
-rw-r--r-- | spec/outputs/string.lua | 1 |
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}" | |||
51 | e = "#{1} #{2} #{3}" | 51 | e = "#{1} #{2} #{3}" |
52 | 52 | ||
53 | f = [[hello #{world} world]] | 53 | f = [[hello #{world} world]] |
54 | g = "\#{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) | |||
29 | local d = tostring(hello(world)) | 29 | local d = tostring(hello(world)) |
30 | local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3) | 30 | local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3) |
31 | local f = [[hello #{world} world]] | 31 | local f = [[hello #{world} world]] |
32 | local g = "#{hello world}" | ||
32 | a = 'hello #{hello} hello' | 33 | a = 'hello #{hello} hello' |
33 | b = '#{hello} hello' | 34 | b = '#{hello} hello' |
34 | c = 'hello #{hello}' | 35 | c = 'hello #{hello}' |