ecl-logo Documentation

Example

Example[{category,description},expression,expectedValue]example

returns an example which contains an executable Test as well as description/categorization information for documentation generation.

Example[{category,subCategory,description},expression,expectedValue]example

returns an example which contains an executable Test as well as description/categorization information for documentation generation.

Details

    Input
    Output
    General Options
    Attributes
  • HoldRest

Examples

Basic Examples  (3)

Define an Example with a given Category:

Define an Example with a given Category and SubCategory:

Define an Example with a for a specific Message to be thrown:

Attributes  (1)

HoldRest  (1)

Arguments after the first are not evaluated: