Skip to content

add test fixtures for switch, class extends, array/string methods, numeric enum#220

Merged
cs01 merged 1 commit intomainfrom
test/coverage-gaps
Mar 11, 2026
Merged

add test fixtures for switch, class extends, array/string methods, numeric enum#220
cs01 merged 1 commit intomainfrom
test/coverage-gaps

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 11, 2026

Summary

  • Add 9 test fixtures covering previously untested features: switch statements (numeric + string), class inheritance, Array.from, Array.join, string replace/indexOf/slice, and numeric enums
  • Switch tests are @test-skip — native parser transforms switch into independent if statements without else-chaining, so default case always runs. Fix requires transformer.ts changes that break self-hosting.

Test plan

  • All 7 active tests pass with both JS and native compiler
  • Switch tests skipped (known native parser bug documented)
  • verify:quick passes including self-hosting Stage 1

@cs01 cs01 merged commit 9efd882 into main Mar 11, 2026
12 checks passed
@cs01 cs01 deleted the test/coverage-gaps branch March 12, 2026 05:35
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