Skip to content

Commit

Permalink
remove err in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tot0p committed Feb 26, 2024
1 parent 6d2642f commit 70fbc36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions interpreter/eclaType/char_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -917,8 +917,7 @@ func TestCharAppendChar(t *testing.T) {
result, err := t1.Append(t2)
if err != nil {
t.Error(err)
}
if result.GetValue() != String("AB") {
} else if result.GetValue() != String("AB") {
t.Error("Expected AB, got ", result)
}
}
Expand All @@ -930,8 +929,7 @@ func TestCharAppendString(t *testing.T) {
result, err := t1.Append(t2)
if err != nil {
t.Error(err)
}
if result.GetValue() != String("ABC") {
} else if result.GetValue() != String("ABC") {
t.Error("Expected ABC, got ", result)
}
}
Expand Down

0 comments on commit 70fbc36

Please sign in to comment.