Skip to content

Lower bounds check on IntList get#1477

Open
smarasca5 wants to merge 2 commits intoprocessing:mainfrom
smarasca5:lower-bounds-check-1415
Open

Lower bounds check on IntList get#1477
smarasca5 wants to merge 2 commits intoprocessing:mainfrom
smarasca5:lower-bounds-check-1415

Conversation

@smarasca5
Copy link

Title: Lower bounds check on IntList get

Resolves #[1415]

Changes: Added a lower bound within the if statement of the get method within IntList. There was no lower bounds check within this method before. Now it throws exception if index is negative.

Tests: tests within IntListTest

Checklist: Tests pass and branch is up to date

@marksherman
Copy link

We might want to squash the commits into a single commit thaat has a more descriptive name. That way there's one commit with all the small changes packed together, so looking at the history it will be clear what happened here.

@marksherman
Copy link

@FranciscoJ26 could you please review these changes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants