Skip to content

Commit

Permalink
Refactor tests
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Müller <[email protected]>
  • Loading branch information
SupunS and turbolent committed Nov 10, 2021
1 parent 2fba738 commit 3526c05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/tests/interpreter/container_mutation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ func TestDictionaryMutation(t *testing.T) {
assert.Equal(t,
&sema.OptionalType{
Type: sema.IntType,
}, mutationError.ActualType,
},
mutationError.ActualType,
)
})

Expand Down Expand Up @@ -873,7 +874,7 @@ func TestDictionaryMutation(t *testing.T) {
require.IsType(t, &sema.OptionalType{}, mutationError.ActualType)
actualOptionalType := mutationError.ActualType.(*sema.OptionalType)

assert.IsType(t, &sema.FunctionType{}, actualOptionalType.Type)
require.IsType(t, &sema.FunctionType{}, actualOptionalType.Type)
actualFuncType := actualOptionalType.Type.(*sema.FunctionType)

assert.Equal(t, sema.VoidType, actualFuncType.ReturnTypeAnnotation.Type)
Expand Down

0 comments on commit 3526c05

Please sign in to comment.