Skip to content

test: inline-model VM tests are not also run on the wasm backend #617

Closed as not planned

Description

@bpowers

Several integration tests in src/simlin-engine/tests/integration/simulate.rs build a model from an inline string, run it on the VM, and check values by hand.
They do not go through the shared corpus helpers, so they are never also run on the wasm backend.

Examples: simulates_except_basic_mdl, na_existence_test_and_arithmetic_finite, the simulates_get_direct_*_scalar_csv tests, and some simulates_macro_* tests.

Why it matters

Little.
Every feature these tests exercise (EXCEPT, GET DIRECT, macros, :NA: arithmetic) is also covered by a corpus model that runs on both backends.
The only cost is that "every simulated model also runs on wasm" is not literally true of the test suite.

Fix

Options:

  • Leave it, and add a sentence to src/simlin-engine/CLAUDE.md saying wasm parity covers models run through the corpus helpers.
  • Call ensure_wasm_matches (in tests/integration/test_helpers.rs) at the end of each inline test.

Pointers

  • src/simlin-engine/tests/integration/simulate.rs
  • src/simlin-engine/tests/integration/test_helpers.rs: ensure_wasm_matches, wasm_results_for

Activity

  1. added
    engine
    hygiene
    rust
    on May 22, 2026
  2. changed the title [-]wasm-backend AC3.2 boundary: inline-fixture VM tests bypass the wasm parity hook[/-] [+]test: inline-model VM tests are not also run on the wasm backend[/+] on Oct 12, 2026
  3. added
    wontfix
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing as won't fix.

    Every feature they exercise is already covered on both backends by corpus models, and the issue itself says it is not a defect; adding wasm calls is test overlap with no shipped bug behind it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enginehygienerustwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions