Skip to content

Forward-port integer range regression tests to v13 - #8718

Open
fhammerschmidt wants to merge 2 commits into
rescript-lang:masterfrom
fhammerschmidt:test/forward-port-integer-range
Open

fhammerschmidt wants to merge 2 commits into
rescript-lang:masterfrom
fhammerschmidt:test/forward-port-integer-range

Conversation

@fhammerschmidt

Copy link
Copy Markdown
Member

Forward-port Manuel Vázquez Acosta's regression test from #8714 to v13. The ReScript source is unchanged; its JavaScript snapshot is regenerated with the current compiler and now checks explicit bounds instead of the v12 unsigned-offset expression.

The test verifies that the record pattern {status: 502 | 503 | 504} rejects 404, 500, 501, and 505 while accepting all three matching statuses. The v13 compiler already handles this correctly since alpha.6, so this PR only adds regression coverage. The port retains the original commit author and attribution trailers.

Validation: make test passes, including formatting, 328 OUnit tests, 559 runtime tests, build fixtures, and 741 documentation examples.

mvaled and others added 2 commits October 2, 2026 19:25
Port the ReScript regression test from rescript-lang#8714 unchanged and regenerate the
JavaScript snapshot with the v13 compiler. The compiler already handles
these patterns correctly after removing Pisout.

Original-commit: 54ab807
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Manuel Vázquez Acosta <mva.led@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
@pkg-pr-new

pkg-pr-new Bot commented Oct 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8718

@rescript/belt

npm i https://pkg.pr.new/@rescript/belt@8718

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8718

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8718

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8718

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8718

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8718

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8718

commit: c452ac2

This branch has not been deployed

No deployments
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