in reply to Is it possible to "fix a seed" for hash?
Scripts whose output depends on hashes are tested wrongly, because such scripts are buggy. If the order is important, sort the values, if it's not, use bag from Test::Deep in the tests.
Update: Similarly, for Test2 based testing, see Bag Builder in Test2::Tools::Compare.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to "fix a seed" for hash?
by rsFalse (Chaplain) on Mar 22, 2021 at 10:13 UTC | |
by haukex (Archbishop) on Mar 22, 2021 at 22:16 UTC | |
by choroba (Cardinal) on Mar 22, 2021 at 10:18 UTC |