haskell-unordered-containers / unordered-containers

Efficient hashing-based container types
BSD 3-Clause "New" or "Revised" License
221 stars 97 forks source link

Refactor tests #453

Closed sjakobi closed 2 years ago

sjakobi commented 2 years ago

…by moving the test definitions directly into the trees.

Context: https://github.com/haskell-unordered-containers/unordered-containers/issues/284.

This is also preparation for the addition for more invariant-checking tests (https://github.com/haskell-unordered-containers/unordered-containers/issues/449).


TODO:

sjakobi commented 2 years ago

I'll spare the other test-suites for now.

In the case of Properties.List I suspect that we won't need to do any changes and can hopefully get rid of them when https://github.com/haskell-unordered-containers/unordered-containers/issues/155 is implemented.

The regression test cases are mostly a bit larger, so I don't think they'd benefit from being inlined into the test tree.

I'm not very familiar with the strictness tests yet. I'll look at them at a different time.