Skip to content

Commit

Permalink
validators/ip: added more positive unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Nov 7, 2024
1 parent 3d9f0ea commit 82dec5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/validators/ip.art
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ define :ipValidator is :validator [
"::1234:5678"
"2001:db8::1234:5678"
"2001:0db8:0001:0000:0000:0ab9:C0A8:0102"
"fe80::1ff:fe23:4567:890a"
"fe80::1ff:fe23:4567:890a%eth0"
"3ffe:2a00:100:7031::1"
"1:2:3:4:5:6:7:8"
"::ffff:192.0.2.128" ; IPv4-mapped IPv6 address

["1.2.3.4" [v4: true]]
["127.0.0.1" [v4: true]]
Expand Down

0 comments on commit 82dec5d

Please sign in to comment.