Skip to content

mdl: test saving and re-reading names with special characters #335

Closed

Description

@bpowers

The MDL writer must quote names holding characters like $, / or | (#330), and the reader must read the quoted name back as the same variable.
This asked for a test that saves such names to MDL and reads them back.

Status on main

tests/integration/mdl_roundtrip.rs round-trips test/test-models/tests/special_characters/test_special_variable_names.mdl (listed in ARRAYED_GATE_MODELS, run by the gates CI job).
That file defines names with $, |, /, quotes, backslashes, parentheses and an embedded newline, and the test checks the re-read model matches the original.

Activity

  1. added
    engine
    compat
    on Jun 8, 2026
  2. changed the title [-]Add MDL round-trip integration test for special-character identifiers[/-] [+]mdl: test saving and re-reading names with special characters[/+] on Oct 12, 2026
  3. added
    hygiene
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing: already fixed on main.

    mdl_to_mdl_roundtrip_of_arrayed_models (src/simlin-engine/tests/integration/mdl_roundtrip.rs:333-337) parses test/test-models/tests/special_characters/test_special_variable_names.mdl (listed at line 325; names with $, |, /, *, ^, quotes, backslash, parentheses, \n), writes it with project_to_mdl, re-parses, and compares variable idents and equations. It is #[ignore]d as a gate, run by CI's gates job (.github/workflows/ci.yaml:161-192 via scripts/gates.sh).

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

    compatenginehygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions