Skip to content

Commit 3c427f7

Browse files
authored
Merge pull request #42 from ZhangChengLin/test_Ipv6
2 parents 93f1e5c + a2038c2 commit 3c427f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ValidatorsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ public function testIp(): void
309309
$this->assertTrue(Validators::ip('0.0.0.0'));
310310
$this->assertTrue(Validators::ip('127.0.0.1'));
311311
$this->assertTrue(Validators::ipv4('127.0.0.1'));
312+
$this->assertTrue(Validators::ipv6('2400:3200::1'));
313+
$this->assertTrue(Validators::ipv6('0:0:0:0:0:0:0:0'));
312314
}
313315

314316
public function testEnglish(): void

0 commit comments

Comments
 (0)