This is an issue with your code. In your code, arr is a global variable, so when the code runs the second test, there are still values from the first test in arr. You must not have been running more than one test locally, otherwise you'd see the same behavior in visual stuido.
This is an issue with your code. In your code,
arr
is a global variable, so when the code runs the second test, there are still values from the first test inarr
. You must not have been running more than one test locally, otherwise you'd see the same behavior in visual stuido.