Added pipe tests

This commit is contained in:
2023-04-07 14:52:17 +02:00
parent 04f610c799
commit 75fde0f444
6 changed files with 68 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ class IPAddressPipe(PipeABC):
for i in range(0, len(value)):
byte = value[i]
if byte > 255:
if byte > 255 or byte < 0:
raise Exception("Invalid IP")
if i == len(value) - 1: