aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/string.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/string.mp')
-rw-r--r--spec/inputs/string.mp66
1 files changed, 66 insertions, 0 deletions
diff --git a/spec/inputs/string.mp b/spec/inputs/string.mp
new file mode 100644
index 0000000..5d8f772
--- /dev/null
+++ b/spec/inputs/string.mp
@@ -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