Skip to content
Snippets Groups Projects
Unverified Commit 87d40d31 authored by takt's avatar takt Committed by GitHub
Browse files

Merge pull request #179 from bio-routing/fix/net_coverage_back_to_100

increased test coverage
parents 5b2ac6a8 c188b823
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.
Finish editing this message first!
Please register or to comment