Skip to content

Commit 39cdb0b

Browse files
committed
Adjust the unit tests.
1 parent 5eb0622 commit 39cdb0b

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

unit3/testinp/trynum.inp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
42

unit3/testout/tryexcept.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
First -1
2+
Second 123

unit3/testout/trynum.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enter a number:Nice work

unit3/unit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
]
2121

2222
toskip = [
23+
'notry.py', # will always exception
2324
'unit.py', # avoid infinite loops
2425
'wikigrade.py', # talks to ctools - too complex
2526
'argfile.py', # argument passing - no need to test
@@ -92,3 +93,4 @@
9293
diff = True
9394
if diff or fail >= 1 :
9495
sys.exit(1)
96+

0 commit comments

Comments
 (0)