From 3526c058d0de18915a46c18c8516b74d0ffc2003 Mon Sep 17 00:00:00 2001 From: Supun Setunga Date: Tue, 9 Nov 2021 15:11:09 -0800 Subject: [PATCH] Refactor tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Müller --- runtime/tests/interpreter/container_mutation_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/tests/interpreter/container_mutation_test.go b/runtime/tests/interpreter/container_mutation_test.go index 236bbc6884..8d2c66bf21 100644 --- a/runtime/tests/interpreter/container_mutation_test.go +++ b/runtime/tests/interpreter/container_mutation_test.go @@ -555,7 +555,8 @@ func TestDictionaryMutation(t *testing.T) { assert.Equal(t, &sema.OptionalType{ Type: sema.IntType, - }, mutationError.ActualType, + }, + mutationError.ActualType, ) }) @@ -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)