Skip to content

Tests for Array<string> and Array<Shared<T>> under every model - #52

Merged
ASDAlexander77 merged 1 commit into
mainfrom
own-defaultlib-batch3
Oct 28, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
own-defaultlib-batch3

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Depends on ASDAlexander77/TypeScriptCompiler#706, which makes Array<string> and Array<Shared<T>> compile under own. Merge that first.

This PR adds two tests of the Array<T> class:

  • array_class_string runs every walking, copying and filling method over strings. That includes fill, filter2 and forEach with a callback that builds a captured string.
  • array_class_shared does the same over Shared<Item> handles, including splice, shift and pop.

Both run in every model. With the compiler PR, the DefaultLib suite has no failures (out of 174):

Model Passed Skipped
own 163 11 (marked not own)
rc, none 173 1
gc 174 0

These hold in release and debug, compiled and under the JIT.

🤖 Generated with Claude Code

Both compile and run under every model, -mm=own included, with the
compiler's own-defaultlib-batch3 branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 67f034c into main Oct 28, 2026
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.

1 participant