Skip to content

BUG: DynamicOneDimensionalArray's size is not updated properly #557

Open
@Kishan-Ved

Description

@Kishan-Ved

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions