Neptune-Crypto / neptune-core

anonymous peer-to-peer cash
Apache License 2.0
23 stars 7 forks source link

phase out pseudorandom test-case generators #110

Open aszepieniec opened 5 months ago

aszepieniec commented 5 months ago

With the introduction of time locks (#107) we have implementations of either arbitrary::Arbitrary or proptest::Arbitrary for several key structs related to transaction validity. Previously, we had pseudorandom mock object generators. In fact, there still are some, in particular in connection to removal records integrity. These should be phased out --

-- and replaced with appropriate implementations of Arbitrary. Using the test frameworks proptest, arbitrary, and test_strategy is preferable because: