Repository navigation
Match ordinary array assignment status for out-of-bounds indices - #106
Merged
Merged
Conversation
Check the offset array before reading its logical assignment marker, then read the same linear slot checked by Array.isassigned. This preserves the installed Julia version's index semantics, including older multi-index behavior, under forced bounds checks. Add 384 comparisons across scalar, empty, vector and matrix storage with string, weak-reference and missing-capable elements. Full suites pass on Julia 1.6.7 and 1.13.1. Carry the verified OIDC coverage upload repair without secret or settings changes. AI disclosure: This work was prepared with assistance from OpenAI Codex.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
+ Coverage 82.94% 83.66% +0.72%
==========================================
Files 1 1
Lines 299 300 +1
==========================================
+ Hits 248 251 +3
+ Misses 51 49 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Keep main's coverage upload settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
quinnj
referenced
this pull request
Oct 27, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
isassigned(StringArray(["value"]), 0)and other out-of-bounds indices throw aBoundsError, whileisassignedon an ordinary array returnsfalse. The method read the offset before checking that the slot exists.It now asks
isassignedon the offsets array first, then reads the same linear slot, so out-of-bounds indices returnfalseand results match an ordinary array on each supported Julia version (including Julia 1.6, whoseisassignedaccepts some index tuples that checked indexing rejects).Verification: the new test compares
isassignedonStringArrays againstArray{Any}for four element types, four shapes and 24 index tuples. main fails 256 of the 384 comparisons; this branch passes the full suite on Julia 1.3.1, 1.6.7, 1.12.6, 1.13.1 and 1.14.0-DEV. main's coverage upload settings are kept as they are.Co-authored by Codex
🤖 Generated with Claude Code