Syntax of Test Primitives

Tests can be defined using annotations on data methods without parameters. When a Poosl model is run as POOSL Tests, all data methods with a test annotation are invoked. When a Poosl model is run as POOSL Simulation, these annotations are ignored.

The supported data method annotations are:

Exceptions can be raised implicitly (e.g., through a division by zero) or explicitly (e.g., through a call of data method assert or error).

Examples