Skip to content

test: validate compiler against official WebAssembly core suite - #63

Merged
CheckPickerUpper merged 1 commit into
developmentfrom
codex/issue-51-wasm-spec-suite
Aug 28, 2026
Merged

CheckPickerUpper merged 1 commit into
developmentfrom
codex/issue-51-wasm-spec-suite

Conversation

@CheckPickerUpper

Copy link
Copy Markdown
Owner

Linked issue

Closes #51

Observable behavior

The existing compiler-contracts workflow now runs a bounded official WebAssembly core-suite fixture through WAST parsing, wasm encoding, decode, translation, and the pinned Luau runtime. It reports passed, failed, and skipped-by-scope assertions separately; the current compiler reports 17 passed, 4 failed, and 0 skipped because its generated div_s helper does not model the four official divide-by-zero and signed-overflow traps. Those trap assertions fail rather than being counted as passes.

Proof

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features --locked -- -D warnings
  • cargo test --all-targets --locked -- --skip given_official_i32_core_assertions_when_run_through_luau_then_they_pass
  • cargo test --test wasm_spec --locked -- --nocapture produces the intended regression signal: passed=17, failed=4, skipped-by-scope=0.
  • Source revision is documented in tests/fixtures/wasm-spec/core/README.md.

@github-actions

Copy link
Copy Markdown

Visual recap — skipped

The visual recap job did not run for this pull request. This is informational only and does not block the PR.

Recap skipped for 9ee9021: missing required recap label (visual-recap).

@CheckPickerUpper
CheckPickerUpper merged commit 32d5e9d into development Aug 28, 2026
4 checks passed
@CheckPickerUpper
CheckPickerUpper deleted the codex/issue-51-wasm-spec-suite branch August 28, 2026 05:52
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.

Validate the compiler against the official wasm specification test suite

1 participant