diff options
Diffstat (limited to 'spec/inputs/string.mp')
-rw-r--r-- | spec/inputs/string.mp | 66 |
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 | |||
2 | hi = "hello" | ||
3 | hello = "what the heckyes" | ||
4 | print hi | ||
5 | |||
6 | umm = 'umm' | ||
7 | |||
8 | here, another = "yeah", 'world' | ||
9 | |||
10 | aye = "YU'M" | ||
11 | you '"hmmm" I said' | ||
12 | |||
13 | print aye, you | ||
14 | |||
15 | another = [[ hello world ]] | ||
16 | |||
17 | |||
18 | hi_there = [[ | ||
19 | hi there | ||
20 | ]] | ||
21 | |||
22 | well = [==[ "helo" ]==] | ||
23 | |||
24 | hola = [===[ | ||
25 | eat noots]===] | ||
26 | |||
27 | mm = [[well trhere]] | ||
28 | |||
29 | oo = "" | ||
30 | |||
31 | x = "\\" | ||
32 | x = "a\\b" | ||
33 | x = "\\\n" | ||
34 | x = "\"" | ||
35 | |||
36 | -- | ||
37 | |||
38 | a = "hello #{hello} hello" | ||
39 | b = "#{hello} hello" | ||
40 | c = "hello #{5+1}" | ||
41 | d = "#{hello world}" | ||
42 | e = "#{1} #{2} #{3}" | ||
43 | |||
44 | f = [[hello #{world} world]] | ||
45 | |||
46 | -- | ||
47 | |||
48 | a = 'hello #{hello} hello' | ||
49 | b = '#{hello} hello' | ||
50 | c = '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 | |||
64 | something"hello"\world! | ||
65 | something "hello"\world! | ||
66 | |||