You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mdl: test saving and re-reading names with special characters #335
compatCompatibility (XMILE, Vensim, etc) problem or enhancementengineIssues with the rust-based simulation enginehygieneToil, but its useful to get get too behind on it
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.
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
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).
compatCompatibility (XMILE, Vensim, etc) problem or enhancementengineIssues with the rust-based simulation enginehygieneToil, but its useful to get get too behind on it
Activity
[-]Add MDL round-trip integration test for special-character identifiers[/-][+]mdl: test saving and re-reading names with special characters[/+]bpowers commentedon Oct 12, 2026
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 withproject_to_mdl, re-parses, and compares variable idents and equations. It is#[ignore]d as a gate, run by CI'sgatesjob (.github/workflows/ci.yaml:161-192 via scripts/gates.sh).