<tests>

The <tests> element holds automated checks for a <program> or other interactive coding example. It can contain raw unit-test code or structured <iotest> cases, depending on the kind of exercise.

Use <tests> when readers should be able to run or inspect checks on their code.

Syntax

Attributes

Attributes for <tests>
AttributeRequired?Values
visible = "…"optional"yes""no"

Children

The following may appear as children: <iotest> Text

Parents

This element may appear as an immediate child of the following elements: <program>

Examples