-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunTest
More file actions
executable file
·51 lines (34 loc) · 1014 Bytes
/
runTest
File metadata and controls
executable file
·51 lines (34 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
# If python import path is a problem:
import sys
import os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import mod
#print("hello")
#print(mod)
#print(mod.magic)
print(mod.magic(3, 4))
#print([4, "foo", { "bar", 5, 6 } ])
# print primitives
mod.white(12)
mod.white(None)
mod.white("hello")
# print lists/tuples
mod.white([1,2,None,"white","black",])
mod.white((1,2,None,"white","black",))
# print more complex dictionary types
mod.white({'a':12, 'b':88, 'c':[1,2,3,4,], 'd':{'white':'white'}})
# variable number of arguments
mod.rabbit(0)
mod.rabbit(0,1)
mod.rabbit(0,1,2,3,4,5)
# print with a mix of values
mod.rabbit(0,1,2,"wonderland",{'a':1, 'b':2}, ("this","is","a","tuple"))
'''
# I want magic to take any number and type of arguments.
# this will fail. I'd like the mod.magic() to be able to
# handle any arguments.
print(mod.magic(3, 4, 5))
# I want magic to work with any arguments:
print(mod.magic([4, "foo", { "bar", 5, 6 } ], "cake", "pie"))
'''