We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: DynamicOneDimensionalArray's size is not updated properly
def test_DynamicOneDimensionalArray3(): DODA = DynamicOneDimensionalArray A = DODA(int, 1) A.delete(1) print(A._size) print(str(A)) A.append(2) print(str(A)) print(A.size) A.append(3) print(str(A)) print(A.size)
Output:
1 [] ['2'] 1 ['2', '3'] 3
The final size should be 2, but it is 3.
The text was updated successfully, but these errors were encountered:
What's the output given by len(A)?
len(A)
Sorry, something went wrong.
It is the same as A.size for all the 3 cases in the code above.
A.size
Actually size is correct. len(A) should give 2 in the end. Also check the references in the DODA docs.
size
2
DODA
No branches or pull requests
Description of the problem
BUG: DynamicOneDimensionalArray's size is not updated properly
Example of the problem
Output:
The final size should be 2, but it is 3.
The text was updated successfully, but these errors were encountered: