diff options
author | Li Jin <dragon-fly@qq.com> | 2022-06-03 23:14:45 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-06-03 23:14:45 +0800 |
commit | 8e546a5d26a6a19192caa4b56f3c0348e67bde2b (patch) | |
tree | 25d0115421fdb950da96c209630c4b4a5fae5ff8 /spec | |
parent | c06dde519a8da2be72bdf5a5d450d637f388ae83 (diff) | |
download | yuescript-8e546a5d26a6a19192caa4b56f3c0348e67bde2b.tar.gz yuescript-8e546a5d26a6a19192caa4b56f3c0348e67bde2b.tar.bz2 yuescript-8e546a5d26a6a19192caa4b56f3c0348e67bde2b.zip |
fix issue #104.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/string.yue | 2 | ||||
-rw-r--r-- | spec/outputs/string.lua | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/spec/inputs/string.yue b/spec/inputs/string.yue index e21ae84..201e60d 100644 --- a/spec/inputs/string.yue +++ b/spec/inputs/string.yue | |||
@@ -33,6 +33,8 @@ nil | |||
33 | Fail to compile | 33 | Fail to compile |
34 | ]] | 34 | ]] |
35 | 35 | ||
36 | txt[ [[abc]]] = [["#{i}" for i = 1, 10] for i = 1, 10]] | ||
37 | |||
36 | oo = "" | 38 | oo = "" |
37 | 39 | ||
38 | x = "\\" | 40 | x = "\\" |
diff --git a/spec/outputs/string.lua b/spec/outputs/string.lua index 84b6700..87ecf2c 100644 --- a/spec/outputs/string.lua +++ b/spec/outputs/string.lua | |||
@@ -17,6 +17,7 @@ local txt = [[ | |||
17 | nil | 17 | nil |
18 | Fail to compile | 18 | Fail to compile |
19 | ]] | 19 | ]] |
20 | txt[ [[abc]]] = [["#{i}" for i = 1, 10] for i = 1, 10]] | ||
20 | local oo = "" | 21 | local oo = "" |
21 | local x = "\\" | 22 | local x = "\\" |
22 | x = "a\\b" | 23 | x = "a\\b" |