diff --git a/runtime/tests/checker/arrays_dictionaries_test.go b/runtime/tests/checker/arrays_dictionaries_test.go index 3a2c7b968a..09cab5a4ca 100644 --- a/runtime/tests/checker/arrays_dictionaries_test.go +++ b/runtime/tests/checker/arrays_dictionaries_test.go @@ -1237,7 +1237,7 @@ func TestCheckArrayMap(t *testing.T) { return x % 2 == 0 } - let y = x.map(trueForEven) + let y: [Bool] = x.map(trueForEven) } fun testFixedSize() { @@ -1247,7 +1247,7 @@ func TestCheckArrayMap(t *testing.T) { return x % 2 == 0 } - let y = x.map(trueForEvenInt) + let y: [Bool; 5] = x.map(trueForEvenInt) } `) @@ -1288,7 +1288,7 @@ func TestCheckArrayMapInvalidArgs(t *testing.T) { return x % 2 == 0 } - let y = x.map(trueForEvenInt16) + let y: [Bool] = x.map(trueForEvenInt16) } `, []sema.SemanticError{ @@ -1312,7 +1312,7 @@ func TestCheckResourceArrayMapInvalid(t *testing.T) { return true } - let mappedXs = xs.map(allResources) + let mappedXs: [Bool] = xs.map(allResources) destroy xs return mappedXs } diff --git a/runtime/tests/interpreter/interpreter_test.go b/runtime/tests/interpreter/interpreter_test.go index 56c842176c..185a09b01c 100644 --- a/runtime/tests/interpreter/interpreter_test.go +++ b/runtime/tests/interpreter/interpreter_test.go @@ -11086,6 +11086,7 @@ func TestInterpretArrayFilter(t *testing.T) { } func TestInterpretArrayMap(t *testing.T) { + t.Parallel() runValidCase := func( t *testing.T,