diff options
Diffstat (limited to 'spec/inputs/assign.mp')
-rw-r--r-- | spec/inputs/assign.mp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/inputs/assign.mp b/spec/inputs/assign.mp new file mode 100644 index 0000000..dac2ba3 --- /dev/null +++ b/spec/inputs/assign.mp | |||
@@ -0,0 +1,33 @@ | |||
1 | |||
2 | _ = -> | ||
3 | joop = 2302 | ||
4 | |||
5 | (hi) -> | ||
6 | d = 100 | ||
7 | hi = 1021 | ||
8 | |||
9 | a,b,c,d = 1,2,3,4 | ||
10 | |||
11 | hello[232], (5+5)[121], hello, x[99] = 100, 200, 300 | ||
12 | |||
13 | joop = 12 | ||
14 | |||
15 | joop = 2345 | ||
16 | |||
17 | a, b = if hello | ||
18 | "hello" | ||
19 | else | ||
20 | "nothing", "yeah" | ||
21 | |||
22 | |||
23 | a, b = if hello | ||
24 | if yeah then "one", "two" else "mmhh" | ||
25 | else | ||
26 | print "the other" | ||
27 | "nothing", "yeah" | ||
28 | |||
29 | c, d = 1, 2 if true | ||
30 | |||
31 | x = (do | ||
32 | f! | ||
33 | 123) if f = getHandler! | ||