This commit is contained in:
Thomas Limoncelli 2025-12-17 16:48:50 -05:00
parent 1452bbc4d6
commit c87451ccda
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -248,7 +248,7 @@ func TestFixPosition(t *testing.T) {
{
name: "random string",
pos: "alsdjfsljd",
want: "[line:alsdjfsljd]",
want: "[alsdjfsljd]",
},
}
for _, tt := range tests {

View file

@ -18,7 +18,6 @@ func TestSetRecordNames(t *testing.T) {
NameRaw: "bücher.com",
NameUnicode: "bücher.com",
}
_ = dcIDN
tests := []struct {
name string
@ -344,7 +343,7 @@ func TestSetRecordNames(t *testing.T) {
gotErr := setRecordNames(tt.rec, tt.dc, tt.n)
if (gotErr != nil && (!tt.expectedErr)) || (gotErr == nil && tt.expectedErr) {
t.Errorf("Error: got \"%v\", want %v", gotErr, tt.expectedErr)
} else if gotErr != nil {
} else if gotErr != nil && tt.expectedErr {
// Expected error, test passed.
} else {
if tt.rec.NameRaw != tt.expectedRec.NameRaw {