Skip to content

Commit 33a4639

Browse files
author
Mzid Ahmed
committed
update test_cases.py
1 parent 7f2e0e5 commit 33a4639

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test_cases.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import sys
12
from glob import *
23

4+
state = 0
35

46
for file in glob("*.*"):
57
if(file != "test_cases.py"):
@@ -11,8 +13,11 @@
1113
# Test case 1 is checking if there are illegal tabulators in the code
1214
if line.find("\t") != -1:
1315
print(file + " in line " + str(i) + ": not permitted tab found")
16+
state = 1
1417

1518
# Test case 2 is checking if there are more than the two allowed '/'
1619
if line.find("///") != -1:
1720
print(file + " in line " + str(i) + ": not permitted use of '///' ")
18-
21+
state = 1
22+
23+
sys.exit(state)

0 commit comments

Comments
 (0)