@@ -47,8 +47,6 @@ func Test_New(t *testing.T) {
4747 }
4848
4949 for _ , tt := range tests {
50- tt := tt
51-
5250 t .Run (tt .name , func (t * testing.T ) {
5351 got , err := New (tt .args .input )
5452 if tt .wantErr {
@@ -116,8 +114,6 @@ func Test_computer_add(t *testing.T) {
116114 }
117115
118116 for _ , tt := range tests {
119- tt := tt
120-
121117 t .Run (tt .name , func (t * testing.T ) {
122118 err := tt .c .add (tt .args .aPos , tt .args .bPos , tt .args .resPos )
123119 require .NoError (t , err )
@@ -163,8 +159,6 @@ func Test_computer_mult(t *testing.T) {
163159 }
164160
165161 for _ , tt := range tests {
166- tt := tt
167-
168162 t .Run (tt .name , func (t * testing.T ) {
169163 err := tt .c .mult (tt .args .aPos , tt .args .bPos , tt .args .resPos )
170164 require .NoError (t , err )
@@ -195,8 +189,6 @@ func Test_computer_Execute(t *testing.T) {
195189 }
196190
197191 for _ , tt := range tests {
198- tt := tt
199-
200192 t .Run (tt .name , func (t * testing.T ) {
201193 comp := tt .c
202194 got , err := comp .Execute ()
@@ -233,8 +225,6 @@ func Test_computer_Input(t *testing.T) {
233225 }
234226
235227 for _ , tt := range tests {
236- tt := tt
237-
238228 t .Run (tt .name , func (t * testing.T ) {
239229 comp := tt .c
240230 comp .Input (tt .args .noun , tt .args .verb )
0 commit comments