aboutsummaryrefslogtreecommitdiff
path: root/ast/modify_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ast/modify_test.go')
-rw-r--r--ast/modify_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/ast/modify_test.go b/ast/modify_test.go
index 6b5019f..6a96539 100644
--- a/ast/modify_test.go
+++ b/ast/modify_test.go
@@ -125,8 +125,7 @@ func TestModify(t *testing.T) {
equal := reflect.DeepEqual(modified, tt.expected)
if !equal {
- t.Errorf("not equal. got=%#v, want=%#v",
- modified, tt.expected)
+ t.Errorf("not equal. got=%#v, want=%#v", modified, tt.expected)
}
}
@@ -140,11 +139,11 @@ func TestModify(t *testing.T) {
Modify(hashLiteral, turnOneIntoTwo)
for key, val := range hashLiteral.Pairs {
- key, _ := key.(*IntegerLiteral)
+ key := key.(*IntegerLiteral)
if key.Value != 2 {
t.Errorf("value is not %d, got=%d", 2, key.Value)
}
- val, _ := val.(*IntegerLiteral)
+ val := val.(*IntegerLiteral)
if val.Value != 2 {
t.Errorf("value is not %d, got=%d", 2, val.Value)
}