We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f2e0e5 commit 33a4639Copy full SHA for 33a4639
test_cases.py
@@ -1,5 +1,7 @@
1
+import sys
2
from glob import *
3
4
+state = 0
5
6
for file in glob("*.*"):
7
if(file != "test_cases.py"):
@@ -11,8 +13,11 @@
11
13
# Test case 1 is checking if there are illegal tabulators in the code
12
14
if line.find("\t") != -1:
15
print(file + " in line " + str(i) + ": not permitted tab found")
16
+ state = 1
17
18
# Test case 2 is checking if there are more than the two allowed '/'
19
if line.find("///") != -1:
20
print(file + " in line " + str(i) + ": not permitted use of '///' ")
-
21
22
+
23
+sys.exit(state)
0 commit comments