-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.py
98 lines (67 loc) · 2.46 KB
/
tester.py
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import os
print()
print("--------------- CASE 1 ---------------")
file = "TestFiles/Empty.txt"
os.system("java -jar jars/avglength.jar " + file )
print()
print("--------------- CASE 2 ---------------")
file = "TestFiles/Image.jpg"
os.system("java -jar jars/avglength.jar " + file )
print()
print("--------------- CASE 3 ---------------")
file = "TestFiles/Chinese.txt"
os.system("java -jar jars/avglength.jar " + file )
print()
print("--------------- CASE 4 ---------------")
file = "TestFiles/Multiple.txt"
os.system("java -jar jars/avglength.jar " + file )
print()
print("--------------- CASE 5 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file)
print()
print("--------------- CASE 6 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --d ")
print()
print("--------------- CASE 7 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --d " + " a ")
print()
print("--------------- CASE 8 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --d " + " ab ")
print()
print("--------------- CASE 9 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l ")
print()
print("--------------- CASE 10 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l " + " 3 ")
print()
print("--------------- CASE 11 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l " + " -4 ")
print()
print("--------------- CASE 12 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l " + " 3.33 ")
print()
print("--------------- CASE 13 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --d " + " --l ")
print()
print("--------------- CASE 14 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l " + " --d ")
print()
print("--------------- CASE 15 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --d " + " a " + " --l "+ " 3 ")
print()
print("--------------- CASE 16 ---------------")
file = "TestFiles/English.txt"
os.system("java -jar jars/avglength.jar " + file + " --l " + " 3 " + " --d "+ " a ")
print()
print("--------------- --- ---------------")