https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AIPAddress%2Fsandbox%2Ftestcases
Module:IPAddress/sandbox/testcases - Revision history
2025-05-29T05:53:12Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.2
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026145910&oldid=prev
MarioGom at 17:13, 31 May 2021
2021-05-31T17:13:04Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:13, 31 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 23:</td>
<td colspan="2" class="diff-lineno">Line 23:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:00002:3008:8CFD:00AB:0002:3008:8CFD', '6'}, -- accept leading zeroes</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:00002:3008:8CFD:00AB:0002:3008:8CFD', '6'}, -- accept leading zeroes</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:10002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- at most 4 digits per segment</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:10002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- at most 4 digits per segment</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {':0002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- <del style="font-weight: bold; text-decoration: none;">can't</del> <del style="font-weight: bold; text-decoration: none;">remove</del> <del style="font-weight: bold; text-decoration: none;">all</del> <del style="font-weight: bold; text-decoration: none;">0s</del> <del style="font-weight: bold; text-decoration: none;">from</del> <del style="font-weight: bold; text-decoration: none;">first</del> <del style="font-weight: bold; text-decoration: none;">segment</del> <del style="font-weight: bold; text-decoration: none;">unless</del> <del style="font-weight: bold; text-decoration: none;">using</del> <del style="font-weight: bold; text-decoration: none;">::</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {':0002:3008:8CFD:00AB:0002:3008:8CFD', '<ins style="font-weight: bold; text-decoration: none;">6</ins>'}, -- <ins style="font-weight: bold; text-decoration: none;">accept</ins> <ins style="font-weight: bold; text-decoration: none;">single</ins> <ins style="font-weight: bold; text-decoration: none;">:</ins> <ins style="font-weight: bold; text-decoration: none;">at</ins> <ins style="font-weight: bold; text-decoration: none;">the</ins> <ins style="font-weight: bold; text-decoration: none;">start</ins> <ins style="font-weight: bold; text-decoration: none;">(this</ins> <ins style="font-weight: bold; text-decoration: none;">is,</ins> <ins style="font-weight: bold; text-decoration: none;">invalid,</ins> <ins style="font-weight: bold; text-decoration: none;">in strict terms)</ins></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:0002:3008:8CFD:00AB:0002:3008:', ''}, -- <del style="font-weight: bold; text-decoration: none;">can't</del> <del style="font-weight: bold; text-decoration: none;">remove</del> <del style="font-weight: bold; text-decoration: none;">all</del> <del style="font-weight: bold; text-decoration: none;">0s</del> <del style="font-weight: bold; text-decoration: none;">from</del> <del style="font-weight: bold; text-decoration: none;">last</del> <del style="font-weight: bold; text-decoration: none;">segment</del> <del style="font-weight: bold; text-decoration: none;">unless</del> <del style="font-weight: bold; text-decoration: none;">using</del> <del style="font-weight: bold; text-decoration: none;">::</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:0002:3008:8CFD:00AB:0002:3008:', '<ins style="font-weight: bold; text-decoration: none;">6</ins>'}, -- <ins style="font-weight: bold; text-decoration: none;">accept</ins> <ins style="font-weight: bold; text-decoration: none;">single</ins> <ins style="font-weight: bold; text-decoration: none;">:</ins> <ins style="font-weight: bold; text-decoration: none;">at</ins> <ins style="font-weight: bold; text-decoration: none;">the</ins> <ins style="font-weight: bold; text-decoration: none;">end</ins> <ins style="font-weight: bold; text-decoration: none;">(this</ins> <ins style="font-weight: bold; text-decoration: none;">is,</ins> <ins style="font-weight: bold; text-decoration: none;">invalid,</ins> <ins style="font-weight: bold; text-decoration: none;">in strict terms)</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'AB:02:3008:8CFD:AB:02:3008:8CFD', '6'}, -- abbreviated</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'AB:02:3008:8CFD:AB:02:3008:8CFD', '6'}, -- abbreviated</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'AB:02:3008:8CFD:AB:02:3008:8CFD:02', ''}, -- too long</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'AB:02:3008:8CFD:AB:02:3008:8CFD:02', ''}, -- too long</div></td>
</tr>
</table>
MarioGom
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026145537&oldid=prev
MarioGom at 17:10, 31 May 2021
2021-05-31T17:10:51Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:10, 31 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.2d0', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.2d0', ''},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'0.0.0.0', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'0.0.0.0', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'00.00.00.00', '4'},</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'00.00.00.00', '4'},<ins style="font-weight: bold; text-decoration: none;"> -- leading zeroes are accepted for 0 only</ins></div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'100.100.020.100', '<del style="font-weight: bold; text-decoration: none;">4</del>'},</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'100.100.020.100', ''},<ins style="font-weight: bold; text-decoration: none;"> -- leading zeroes for other numbers are not accepted (decimal or octal?)</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'255.255.255.255', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'255.255.255.255', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'-1.0.0.0', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'-1.0.0.0', ''},</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00ab:0002:3008:8cfd:00ab:0002:3008:8cfd', '6'}, -- lowercase</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00ab:0002:3008:8cfd:00ab:0002:3008:8cfd', '6'}, -- lowercase</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00aB:0002:3008:8cFd:00Ab:0002:3008:8cfD', '6'}, -- mixed case</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00aB:0002:3008:8cFd:00Ab:0002:3008:8cfD', '6'}, -- mixed case</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:00002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- <del style="font-weight: bold; text-decoration: none;">at</del> <del style="font-weight: bold; text-decoration: none;">most</del> <del style="font-weight: bold; text-decoration: none;">4 digits per segment</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:00002:3008:8CFD:00AB:0002:3008:8CFD', '<ins style="font-weight: bold; text-decoration: none;">6</ins>'}, -- <ins style="font-weight: bold; text-decoration: none;">accept</ins> <ins style="font-weight: bold; text-decoration: none;">leading</ins> <ins style="font-weight: bold; text-decoration: none;">zeroes</ins></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:10002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- at most 4 digits per segment</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {':0002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- can't remove all 0s from first segment unless using ::</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {':0002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- can't remove all 0s from first segment unless using ::</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:0002:3008:8CFD:00AB:0002:3008:', ''}, -- can't remove all 0s from last segment unless using ::</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'00AB:0002:3008:8CFD:00AB:0002:3008:', ''}, -- can't remove all 0s from last segment unless using ::</div></td>
</tr>
</table>
MarioGom
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026145252&oldid=prev
MarioGom at 17:09, 31 May 2021
2021-05-31T17:09:09Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:09, 31 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.2d0', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.2d0', ''},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'0.0.0.0', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'0.0.0.0', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'00.00.00.00', ''},<del style="font-weight: bold; text-decoration: none;"> -- according to talkpage, leading zeroes unacceptable.</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'00.00.00.00', '<ins style="font-weight: bold; text-decoration: none;">4</ins>'},</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'100.100.020.100', ''},<del style="font-weight: bold; text-decoration: none;"> -- according to talkpage, leading zeroes unacceptable.</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'100.100.020.100', '<ins style="font-weight: bold; text-decoration: none;">4</ins>'},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'255.255.255.255', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'255.255.255.255', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'-1.0.0.0', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'-1.0.0.0', ''},</div></td>
</tr>
</table>
MarioGom
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026144481&oldid=prev
MarioGom at 17:04, 31 May 2021
2021-05-31T17:04:53Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:04, 31 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> self:preprocess_equals_many('{{#invoke:IPAddress/sandbox|isIp|', '}}', {</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> self:preprocess_equals_many('{{#invoke:IPAddress/sandbox|isIp|', '}}', {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {' 200.200.200.200', ''},<del style="font-weight: bold; text-decoration: none;"> -- whitespace not currently allowed</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {' 200.200.200.200', '<ins style="font-weight: bold; text-decoration: none;">4</ins>'},</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200 ', ''},<del style="font-weight: bold; text-decoration: none;"> -- whitespace not currently allowed</del></div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200 ', '<ins style="font-weight: bold; text-decoration: none;">4</ins>'},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.256.200', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.256.200', ''},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200.', ''},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200.', ''},</div></td>
</tr>
</table>
MarioGom
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026144156&oldid=prev
MarioGom at 17:03, 31 May 2021
2021-05-31T17:03:37Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:03, 31 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>function p:test_isIp()</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>function p:test_isIp()</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> self:preprocess_equals_many('{{#invoke:IPAddress|isIp|', '}}', {</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> self:preprocess_equals_many('{{#invoke:IPAddress<ins style="font-weight: bold; text-decoration: none;">/sandbox</ins>|isIp|', '}}', {</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200', '4'},</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {'200.200.200.200', '4'},</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {' 200.200.200.200', ''}, -- whitespace not currently allowed</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {' 200.200.200.200', ''}, -- whitespace not currently allowed</div></td>
</tr>
</table>
MarioGom
https://en.wikipedia.org/w/index.php?title=Module:IPAddress/sandbox/testcases&diff=1026143999&oldid=prev
MarioGom: ←Created page with '-- Unit tests for Module:IPAddress/sandbox. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_isIp() self:preprocess_e...'
2021-05-31T17:02:33Z
<p><a href="/wiki/Wikipedia:AES" class="mw-redirect" title="Wikipedia:AES">←</a>Created page with '-- Unit tests for <a href="/wiki/Module:IPAddress/sandbox" title="Module:IPAddress/sandbox">Module:IPAddress/sandbox</a>. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_isIp() self:preprocess_e...'</p>
<p><b>New page</b></p><div>-- Unit tests for [[Module:IPAddress/sandbox]]. Click talk page to run tests.<br />
local p = require('Module:UnitTests')<br />
<br />
function p:test_isIp()<br />
self:preprocess_equals_many('{{#invoke:IPAddress|isIp|', '}}', {<br />
{'200.200.200.200', '4'},<br />
{' 200.200.200.200', ''}, -- whitespace not currently allowed<br />
{'200.200.200.200 ', ''}, -- whitespace not currently allowed<br />
{'200.200.256.200', ''},<br />
{'200.200.200.200.', ''},<br />
{'200.200.200', ''},<br />
{'200.200.200.2d0', ''},<br />
{'0.0.0.0', '4'},<br />
{'00.00.00.00', ''}, -- according to talkpage, leading zeroes unacceptable.<br />
{'100.100.020.100', ''}, -- according to talkpage, leading zeroes unacceptable.<br />
{'255.255.255.255', '4'},<br />
{'-1.0.0.0', ''},<br />
{'200000000000000000000000000000000000000000000000000000000000000000000000000000.200.200.200', ''},<br />
{'00000000000005.10.10.10', ''},<br />
{'00AB:0002:3008:8CFD:00AB:0002:3008:8CFD', '6'}, -- full length<br />
{'00ab:0002:3008:8cfd:00ab:0002:3008:8cfd', '6'}, -- lowercase<br />
{'00aB:0002:3008:8cFd:00Ab:0002:3008:8cfD', '6'}, -- mixed case<br />
{'00AB:00002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- at most 4 digits per segment<br />
{':0002:3008:8CFD:00AB:0002:3008:8CFD', ''}, -- can't remove all 0s from first segment unless using ::<br />
{'00AB:0002:3008:8CFD:00AB:0002:3008:', ''}, -- can't remove all 0s from last segment unless using ::<br />
{'AB:02:3008:8CFD:AB:02:3008:8CFD', '6'}, -- abbreviated<br />
{'AB:02:3008:8CFD:AB:02:3008:8CFD:02', ''}, -- too long<br />
{'AB:02:3008:8CFD::02:3008:8CFD', '6'}, -- correct use of ::<br />
{'AB:02:3008:8CFD::02:3008:8CFD:02', ''}, -- too long<br />
{'AB:02:3008:8CFD::02::8CFD', ''}, -- can't have two ::s<br />
{'GB:02:3008:8CFD:AB:02:3008:8CFD', ''}, -- Invalid character G<br />
{'::', '6'}, -- unassigned IPv6 address<br />
{'::1', '6'}, -- loopback IPv6 address<br />
{'0::', '6'}, -- another name for unassigned IPv6 address<br />
{'0::0', '6'}, -- another name for unassigned IPv6 address<br />
{'2:::3', ''}, -- illegal: three colons<br />
})<br />
end<br />
<br />
return p</div>
MarioGom