<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="next" href="Reins.Quickcheck.Config.html"> <link rel="Up" href="Reins.Quickcheck.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Reins" rel="Chapter" href="Reins.html"><title>Reins.Quickcheck.Law</title> </head> <body> <div class="navbar"> <a href="Reins.Quickcheck.html">Up</a> <a href="Reins.Quickcheck.Config.html">Next</a> </div> <center><h1>Module type <a href="type_Reins.Quickcheck.Law.html">Reins.Quickcheck.Law</a></h1></center> <br> <pre><span class="keyword">module type</span> Law = <code class="code">sig</code> <a href="Reins.Quickcheck.Law.html">..</a> <code class="code">end</code></pre><hr width="100%"> <pre><span class="keyword">module</span> <a href="Reins.Quickcheck.Law.Arg.html">Arg</a>: <code class="type"><a href="Reins.Types.Mono.Arbitrary.html">Reins.Types.Mono.Arbitrary</a></code><code class="type"> </code></pre><div class="info"> A value of type Arg.t will be randomly generated and passed to the law function below. </div> <pre><span class="keyword">val</span> <a name="VALdesc"></a>desc : <code class="type">string</code></pre><div class="info"> Description of the test. This value is simply stored in the result of the Check functor below for easy access by a test driver.<br> </div> <pre><span class="keyword">val</span> <a name="VALlaw"></a>law : <code class="type">Arg.t -> bool</code></pre><div class="info"> The function that implements the law. The function should return <code class="code">true</code> when the law holds for the input and <code class="code">false</code> if the law does not hold. It may also raise the exception <a href="Reins.Quickcheck.html#EXCEPTIONTrivial"><code class="code">Reins.Quickcheck.Trivial</code></a> if the law only trivially applies to the input, in which case a new input will be attempted.<br> </div> </body></html>