File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Synopsis 24: Testing
14
14
Created: 30 Dec 2010
15
15
16
16
Last Modified: 31 Dec 2010
17
- Version: 5
17
+ Version: 6
18
18
19
19
=head1 SYNOPSIS
20
20
@@ -61,19 +61,20 @@ file, or if the call occurred between calling two test functions
61
61
62
62
=head2 Test functions
63
63
64
- All test functions take a description argument, which will be
65
- printed along with the C<ok> or C<not ok> result and the test
66
- number. Except in the case of the functions C<pass> and C<flunk>,
67
- this description is optional.
64
+ All test functions take an optional description argument, which
65
+ will be printed along with the C<ok> or C<not ok> result and the test
66
+ number. Note that what is displayed as optional parameters in the list
67
+ below might as well be implemented by some other mechanism, such as
68
+ several C<multi sub>s. Such details are left as implementation-dependent.
68
69
69
70
The names of positional parameters are non-normative, so supplying the
70
71
positional arguments to these test files by name is discouraged.
71
72
72
73
All of the following functions are exported by default:
73
74
74
75
# unconditional passing/failing
75
- pass($desc)
76
- flunk($desc)
76
+ pass($desc? )
77
+ flunk($desc? )
77
78
78
79
# evaluates $cond in boolean context
79
80
ok(Mu $cond, $desc?)
You can’t perform that action at this time.
0 commit comments