@@ -85,16 +85,16 @@ All of the following functions are exported by default:
85
85
sub plan($number_of_tests) is export { ... };
86
86
sub done() is export { ... };
87
87
88
- In order to determine whether a test file ran all its tests, a C<plan> function
88
+ In order to determine whether a test file ran all its tests, a C<plan() > function
89
89
call can be made somewhere in the test file, providing a count of the total
90
90
number of tests. A TAP harness can then flag an error condition when the number
91
91
of tests actually run doesn't match.
92
92
93
- If C<plan> isn't called, C<done> can be called at the end of the test
93
+ If C<plan() > isn't called, C<done() > can be called at the end of the test
94
94
file to output an automatically computed tally.
95
95
96
- A TAP harness will consider it an error if neither C<plan> nor
97
- C<done> was called, or if there was more than one call in the test
96
+ A TAP harness will consider it an error if neither C<plan() > nor
97
+ C<done() > was called, or if there was more than one call in the test
98
98
file, or if the call occurred between calling two test functions
99
99
(rather than at the beginning or at the end).
100
100
@@ -114,7 +114,7 @@ positional arguments to these test files by name is discouraged.
114
114
sub pass($desc?) is export { ... }
115
115
sub flunk($desc?) is export { ... }
116
116
117
- The C<pass> function marks a test as passed. The C<flunk> function marks a
117
+ The C<pass() > function marks a test as passed. The C<flunk() > function marks a
118
118
test as B<not> passed.
119
119
120
120
=head2 diag()
@@ -161,8 +161,8 @@ condition evaluates to C<False>.
161
161
sub cmp_ok(Mu $got, $op, Mu $expected, $desc?) is export { ... }
162
162
163
163
The C<is()> function marks a test as passed if the obtained and expected values
164
- are C<eq>: as such it is a shortcut for C<cmp_ok> with the C<'eq'> operator.
165
- The C<isnt> function marks a test as passed if the obtained and expected values
164
+ are C<eq>: as such it is a shortcut for C<cmp_ok() > with the C<'eq'> operator.
165
+ The C<isnt() > function marks a test as passed if the obtained and expected values
166
166
are B<not> C<eq>. These are typically used to check scalar values.
167
167
168
168
The C<cmp_ok()> function compares two values with the given operator and passes
@@ -197,7 +197,7 @@ as a string.
197
197
sub subtest(&subtests, $desc?) is export { ... }
198
198
199
199
The C<subtest()> function executes the given block, consisting of usually more
200
- than one test, possibly including a C<plan()> or C<done>. It will pass the
200
+ than one test, possibly including a C<plan()> or C<done() >. It will pass the
201
201
test only if B<all> tests in the block, pass.
202
202
203
203
=head2 dies_ok(), lives_ok(), throws_like()
@@ -210,7 +210,7 @@ The C<dies_ok()> passes the test if the given code throws an exception.
210
210
The C<lives_ok()> passes the test if the given code B<does not> throw an
211
211
exception.
212
212
213
- The C<throws_like> function checks whether the given code (specified as either
213
+ The C<throws_like() > function checks whether the given code (specified as either
214
214
something C<Callable>, or as a something to be C<EVAL>led) throws a specific
215
215
exception (either specified as a Type object, or as a string). If an
216
216
exception was thrown, it will also try to match the matcher hash, in which
0 commit comments