marshal-rs/tests
Laurent Valdes bbdfdaa5f2 test: reproduce SymbolLink key corruption in repeated UserMarshal containers
Adds failing regression tests demonstrating that marshal-rs corrupts
symbol-link keys when the same Hash structure is reused after a
UserMarshal boundary. Ruby produces this data for any array of
identical classes (e.g. [OpenStruct.new(a:1), OpenStruct.new(a:10)]).

Test cases:
- symbol_link_keys_preserved_in_repeated_hashmap — fails (key becomes Null)
- symbol_link_values_are_distinct — fails (first pair disappears)
- plain_hash_with_symbol_link_values — passes (not affected)

The bug corrupts the symbols table when parsing hashmaps, dropping
the first key-value pair and leaving a Null key in the second.
2026-04-05 11:34:22 +02:00
..
dump.rs Formatting 2025-07-11 14:00:11 +05:00
game.rs v2.0.0: serde and documentation improvements 2025-12-04 15:24:24 +05:00
load.rs Formatting 2025-07-11 14:00:11 +05:00
serde.rs v2.0.0: serde and documentation improvements 2025-12-04 15:24:24 +05:00
symbol_link_reuse_test.rs test: reproduce SymbolLink key corruption in repeated UserMarshal containers 2026-04-05 11:34:22 +02:00