summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.tap
blob: a70a239da1a49eb9a671cc3050b3cd5ecfdbd5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
TAP version 13
1..42
1..13 A plan only supports directives so this text is wrong.
ok 1 A normal test line includes a number.
ok But a test line may also omit a number.

A random line that does not look like a test or diagnostic should be ignored.
      No matter how it is spaced out.

Or if it is a totally blank line.

not ok 3 This is a failing test line.

# Diagnostics are any lines...
# ... beginning with a hash character.

not ok 4 There are a couple of directives. # TODO is one of those directives.
not ok 5 # TODO: is invalid because the directive must be followed by a space.
ok 6 - Another directive line # toDO is not case sensitive.

ok 7 A line that is a # SKIP
ok 8 Tests can be # skipped as long as the directive has the "skip" stem.
ok 9 The TODO directive must be followed by a space, but # skip: is valid.
1..0 # Skipped directives can show on a plan line too.

Bail out! is a special phrase emitted when a TAP file aborted.

not ok 10 Having TAP version 13 in the middle of a line is not a TAP version.
not ok 11 Having Bail out! in the middle of a line is not a bail out.

ok 12 Here is an empty directive. #

# The most basic valid test lines.
ok
not ok

ok 15 Only the test number should look different. Not another 42, for example.