File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ def test_incorrect_out_of_range2():
55
55
output = "False"
56
56
check50 .run ("python3 testing.py" ).stdin (input , prompt = True ).stdout (output ).exit (0 )
57
57
58
-
58
+
59
59
@check50 .check (exists )
60
60
def test_incorrect_number_bytes ():
61
61
"""numb3rs.py prints False for 8.8.8"""
62
62
input = "8.8.8"
63
63
output = "False"
64
64
check50 .run ("python3 testing.py" ).stdin (input , prompt = True ).stdout (output ).exit (0 )
65
-
65
+
66
66
67
67
@check50 .check (exists )
68
68
def test_incorrect_number_bytes2 ():
@@ -88,6 +88,22 @@ def test_non_ip():
88
88
check50 .run ("python3 testing.py" ).stdin (input , prompt = True ).stdout (output ).exit (0 )
89
89
90
90
91
+ @check50 .check (exists )
92
+ def test_invalid_octet ():
93
+ """numb3rs.py prints False for 1.1.1.11111"""
94
+ input = "1.1.1.11111"
95
+ output = "False"
96
+ check50 .run ("python3 testing.py" ).stdin (input , prompt = True ).stdout (output ).exit (0 )
97
+
98
+
99
+ @check50 .check (exists )
100
+ def test_leading_zero ():
101
+ """numb3rs.py prints False for 000.001.010.100"""
102
+ input = "000.000.001.010"
103
+ output = "False"
104
+ check50 .run ("python3 testing.py" ).stdin (input , prompt = True ).stdout (output ).exit (0 )
105
+
106
+
91
107
"""
92
108
test_numb3rs.py checks
93
109
"""
You can’t perform that action at this time.
0 commit comments