mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
NEW FEATURE: diff2: A better "diff" mechanism (#1852)
This commit is contained in:
@@ -484,11 +484,11 @@ func TestZoneLabelLess(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
actual := zoneLabelLess(test.e1, test.e2)
|
||||
actual := LabelLess(test.e1, test.e2)
|
||||
if test.expected != actual {
|
||||
t.Errorf("%v: expected (%v) got (%v)\n", test.e1, test.e2, actual)
|
||||
}
|
||||
actual = zoneLabelLess(test.e2, test.e1)
|
||||
actual = LabelLess(test.e2, test.e1)
|
||||
// The reverse should work too:
|
||||
var expected bool
|
||||
if test.e1 == test.e2 {
|
||||
|
Reference in New Issue
Block a user