1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fixing a few mistakes in list conversion

This commit is contained in:
Craig Peterson
2016-09-27 12:28:09 -06:00
parent c747498b87
commit 3fb4f3b54c
3 changed files with 21 additions and 12 deletions

View File

@ -126,6 +126,7 @@ func Test_TransformIP(t *testing.T) {
High: net.ParseIP("55.255.0.0"),
NewBases: []net.IP{net.ParseIP("66.0.0.0"), net.ParseIP("77.0.0.0")},
}}
//NO TRANSFORMS ON 99.x.x.x PLZ
var tests = []struct {
experiment string
@ -150,6 +151,7 @@ func Test_TransformIP(t *testing.T) {
{"44.44.44.24", "100.100.100.44"},
{"44.44.44.44", "44.44.44.44"},
{"55.0.42.42", "66.0.42.42,77.0.42.42"},
{"99.0.0.42", "99.0.0.42"},
}
for _, test := range tests {