00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00761 #ifndef QUICKCHECK_QUICKCHECK_H
00762 #define QUICKCHECK_QUICKCHECK_H
00763
00764 #include <iostream>
00765
00766 #include "ostream.hh"
00767 #include "Property.hh"
00768
00775 namespace quickcheck {
00776
00792 template<class Prop>
00793 bool check(const char *msg, size_t n = 100, size_t max = 0,
00794 bool isVerbose = false, std::ostream& out = std::cout)
00795 {
00796 std::cout << "* Checking that " << msg << "..." << std::endl;
00797 Prop theProperty;
00798 bool status = theProperty.check(n, max, isVerbose, out);
00799 std::cout << std::endl;
00800 return status;
00801 }
00802
00803 }
00804
00805 #endif // !QUICKCHECK_QUICKCHECK_H