Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ee3d8430cc80796773ea2e1c8ad4ef5d > files > 155

ocaml-reins-devel-0.1a-10.fc15.i686.rpm

<!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">&nbsp;<a href="Reins.Quickcheck.html">Up</a>
&nbsp;<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 id="VALdesc"><span class="keyword">val</span> desc</span> : <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 id="VALlaw"><span class="keyword">val</span> law</span> : <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>