aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/string.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-10 16:30:34 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-10 16:30:34 +0800
commit52a6536103f46c26a3ba9b149b0fe7b40d524d8c (patch)
tree67e4759f8e1ea922079d0e162d84ecba5e558261 /spec/inputs/string.moon
parent975167856ed0b11c2ede03c6eb750ca4e4a6a7fc (diff)
downloadyuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.gz
yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.bz2
yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.zip
update.
Diffstat (limited to 'spec/inputs/string.moon')
-rw-r--r--spec/inputs/string.moon66
1 files changed, 66 insertions, 0 deletions
diff --git a/spec/inputs/string.moon b/spec/inputs/string.moon
new file mode 100644
index 0000000..897056a
--- /dev/null
+++ b/spec/inputs/string.moon
@@ -0,0 +1,66 @@
1
2hi = "hello"
3hello = "what the heckyes"
4print hi
5
6umm = 'umm'
7
8here, another = "yeah", 'world'
9
10aye = "YU'M"
11you '"hmmm" I said'
12
13print aye, you
14
15another = [[ hello world ]]
16
17
18hi_there = [[
19 hi there
20]]
21
22well = [==[ "helo" ]==]
23
24hola = [===[
25 eat noots]===]
26
27mm = [[well trhere]]
28
29oo = ""
30
31x = "\\"
32x = "a\\b"
33x = "\\\n"
34x = "\""
35
36--
37
38a = "hello #{hello} hello"
39b = "#{hello} hello"
40c = "hello #{5+1}"
41d = "#{hello world}"
42e = "#{1} #{2} #{3}"
43
44f = [[hello #{world} world]]
45
46--
47
48a = 'hello #{hello} hello'
49b = '#{hello} hello'
50c = 'hello #{hello}'
51
52
53--
54
55"hello"
56"hello"\format 1
57"hello"\format(1,2,3)
58"hello"\format(1,2,3) 1,2,3
59
60"hello"\world!
61"hello"\format!.hello 1,2,3
62"hello"\format 1,2,3
63
64something"hello"\world!
65something "hello"\world!
66