Skip to content
New issue

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

array: Add array_get_item_test #9

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

michaelwright235
Copy link
Contributor

This test checks if array items are false dropped. If they aren't (try removing plist.false_drop = true from the array_get_item function) the test panics, because the items are being freed. It shouldn't happen and we must be able to
get items as long as the array exists.

This test checks if array items are *false* dropped. If they aren't (try removing
`plist.false_drop = true` from the `array_get_item` function) the test panics,
because the items are being freed. It shouldn't happen and we must be able to
get items as long as the array exists.
@jkcoxson
Copy link
Owner

That is super interesting behavior. Thank you for writing these tests!

@jkcoxson jkcoxson merged commit fba2e19 into jkcoxson:master Sep 20, 2024
1 check passed
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