usethesource / capsule

The Capsule Hash Trie Collections Library
BSD 2-Clause "Simplified" License
404 stars 27 forks source link

This package contains no tests #15

Closed thedrow closed 7 years ago

thedrow commented 7 years ago

If this library is to be used as a reference implementation to CHAMP it should contain tests that will allow porters to verify the implementation. The tests will also uncover bugs in this implementation. Please cover this package with tests we can all use.

msteindorfer commented 7 years ago

The sub module capsule-veritas contains a test suite of property-based tests that extensively exercise Capsule's data structures with randomly generated inputs. The test suite runs on our continuous integration server after each commit. In summary, this package has tests attached and tests are continuously added over time.

It is not in the scope of Capsule to provide a generic testing infrastructure for ports. However, feel free to reuse the test suite for testing your own implementation, in case you're willing to work yourself through the source code of the testing infrastructure.

thedrow commented 7 years ago

I wasn't talking about generic testing infrastructure :) I was talking about some form of testing that porters can port themselves. These work. They are just not easy to find.