Goto Chapter: Top 1 2 3 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

3 Functionality
 3.1 Methods

3 Functionality

3.1 Methods

This section will describe the methods of QuickCheck

3.1-1 QC_MakeRandomArgument
‣ QC_MakeRandomArgument( ObjectDescription, RandomSource, limit )( function )

Create a random object as described by ObjectDescription of size at most limit using RandomSource. How limit is interpreted will vary depending on the type of object.

3.1-2 QC_Check
‣ QC_Check( arguments, function[, config] )( function )

Run tests on function with arguments as described in arguments.

3.1-3 QC_CheckEqual
‣ QC_CheckEqual( arguments, functionL, functionR[, config] )( function )

Check that, given the same list of arguments as described in arguments, functionL and function return the same value.

3.1-4 QC_LastFailure
‣ QC_LastFailure( arg )( function )

Return the function called, and arguments given, last time a QuickCheck test failed.

Returns a record containing args (the arguments) and a function func (if QC_Check failed) or a list of functions funcs (if QC_CheckEqual failed). Returns false if no test has failed.

3.1-5 QC_RerunLastFailure
‣ QC_RerunLastFailure( arg )( function )

Rerun the last test which failed. This is most useful if a test in a '.tst' file failed, as this will allow the test to enter the break loop.

3.1-6 QC_SetConfig
‣ QC_SetConfig( config )( function )

Set config options for QuickCheck globally, by passing a record. It is not required to set all options.

Current options are:

3.1-7 QC_GetConfig
‣ QC_GetConfig( arg )( function )

Get the current global configuration for QuickCheck, as a record

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 Ind

generated by GAPDoc2HTML