packlist: use prop_assert_eq

fogti
Sep 21, 2021, 3:33 PM
PR4PKEMSGDO52LZV2P23AROGFI3PFIEN5OED7M6KBC6HQPQGGR6QC

Dependencies

  • [2] VHLGEBT7 packlist: less normalization to support proper roundtrips (which only truncate trailing spaces)
  • [3] V4EAN7NN move some stuff around; more packlist stuff
  • [4] NAZOIBER packlist: fix crash on empty input
  • [5] 7WMS7RLP packlist: add support for parsing of multiple premarkers per item

Change contents

  • replacement in crates/zhed-packlist/src/serial.rs at line 158
    [3.4577][2.3609:3647]()
    use alloc::{string::String, vec};
    [3.4577]
    [3.132]
    use alloc::{format, string::String, vec};
  • replacement in crates/zhed-packlist/src/serial.rs at line 207
    [2.4937][2.4937:4969]()
    assert_eq!(x1, x2);
    [2.4937]
    [2.4969]
    prop_assert_eq!(x1, x2);
  • replacement in crates/zhed-packlist/src/serial.rs at line 212
    [2.5120][2.5120:5191]()
    assert_eq!(s, s.parse::<PackList>().unwrap().to_string());
    [2.5120]
    [2.5191]
    prop_assert_eq!(&s, &s.parse::<PackList>().unwrap().to_string());