Skip to content
Snippets Groups Projects
Commit 2c79a711 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

increased test coverage

parent 92c77e88
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,28 @@ func TestContains(t *testing.T) {
},
expected: false,
},
{
a: Prefix{
addr: IPv6FromBlocks(0x2001, 0x678, 0x1e0, 0x100, 100, 0, 0, 0),
pfxlen: 72,
},
b: Prefix{
addr: IPv6FromBlocks(0x2001, 0x678, 0x1e0, 0x100, 100, 0, 0, 1),
pfxlen: 127,
},
expected: true,
},
{
a: Prefix{
addr: IPv6FromBlocks(0x2001, 0x678, 0x1e0, 0x100, 100, 0, 0, 0),
pfxlen: 126,
},
b: Prefix{
addr: IPv6FromBlocks(0x2001, 0x678, 0x1e0, 0x100, 100, 0, 100, 1),
pfxlen: 127,
},
expected: false,
},
}
for _, test := range tests {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment