package checker import ( "reflect" "testing" "github.com/miekg/dns" ) func TestSerialLess(t *testing.T) { tests := []struct { name string a, b uint32 want bool }{ {"equal", 100, 100, false}, {"ab small", 200, 100, false}, {"wrap b ahead", 0xFFFFFFFE, 1, true}, {"wrap a ahead", 1, 0xFFFFFFFE, false}, {"zero