Registry / testing / rapidcheck

rapidcheck

JSON →
library2023-12-14vcpkgunverified

A property-based testing library for C++ (a la QuickCheck) with the goal of being simple to use with as little boilerplate as possible.

vcpkg install rapidcheck
INSTALL
IMPORT
SIG · RAPIDCHECK
R
rapidcheck
testingcppv2023-12-14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rapidcheck.h
#include <rapidcheck.h>

Property-based test that reversing a vector twice yields the original

#include <rapidcheck.h> #include <vector> #include <algorithm> int main() { rc::check("reverse of reverse is original", [](const std::vector<int>& v) { auto rev = v; std::reverse(rev.begin(), rev.end()); std::reverse(rev.begin(), rev.end()); RC_ASSERT(rev == v); }); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2023-12-14latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

rapidcheck — pip install rapidcheck · libregistry