diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-01-30 18:54:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 18:54:53 +0100 |
commit | c9b9260f348299aad70ea2010db6e291ee1e8114 (patch) | |
tree | 7c380cb7a6a04fc95d4397e35ba69dd53c235b0d /src/libutil/tests/hash.hh | |
parent | a31d7d4e5e5eeeb7ca12ca798dc383045e5be1a1 (diff) | |
parent | 560142fec0debefe7f983e60663dc3db4bdd79a9 (diff) |
Merge pull request #7713 from obsidiansystems/more-rapid-check
Add more property tests
Diffstat (limited to 'src/libutil/tests/hash.hh')
-rw-r--r-- | src/libutil/tests/hash.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/tests/hash.hh b/src/libutil/tests/hash.hh new file mode 100644 index 000000000..9e9650e6e --- /dev/null +++ b/src/libutil/tests/hash.hh @@ -0,0 +1,15 @@ +#pragma once + +#include <rapidcheck/gen/Arbitrary.h> + +#include <hash.hh> + +namespace rc { +using namespace nix; + +template<> +struct Arbitrary<Hash> { + static Gen<Hash> arbitrary(); +}; + +} |