ecl-logo Documentation

Tests

Tests[symbol]results

returns defined Tests and Examples for a given symbol.

Tests[string]results

returns defined Tests and Examples for a given string.

Tests[symbol,Output->Hold]heldDefinition

returns un-evaluated test definition a given symbol.

Tests[string,Output->Hold]heldDefinition

returns un-evaluated test for a given string.

Details

  • If there are no Tests or Examples defined for a given symbol, returns an empty list.
  • Input
    Output
    General Options

Examples

Basic Examples  (4)

Returns empty list if no tests defined for symbol:

Returns empty list if no tests defined for a given string:

Returns list of Tests & Examples for given symbol if they are defined:

Returns list of Tests & Examples for given string if they are defined:

Options  (3)

Output  (3)

Returns only Tests for a given symbol:

Returns only Examples for a given symbol:

Returns original definition un-evaluated for given symbol, aftern option replacements: