Open
Description
Description of the problem
BUG: DynamicOneDimensionalArray's size is not updated properly
Example of the problem
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.
Metadata
Metadata
Assignees
Labels
No labels