Skip to content

Fix incorrect slicing #3

Description

@AODQ

Slices are currently incorrect. Right now, for example:

Fr = Range(0, 1, 2, 3);
print(Fr); // "Any|[0, 1, 2, 3]"
print(Fr[0:-1]); // "Any|[0, 1, 2]"
print(Fr[]); // does not interpret

So thus the negative slicing Fr[0:-1] is incorrect, and needs to be fixed. It should print out a slice that is identical to Fr.
Fr[] should be valid, and it should print out an explicit copy of Fr. That is, they should 'point' to different memory addresses.

Also these tests (and more with slices) should be added to unittest.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions