Skip to content

Commit 36c3f56

Browse files
authored
Update tutorial-english.md
1 parent 685eb9b commit 36c3f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorial/tutorial-english.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ Files=1, Tests=1, 0 wallclock secs ( 0.01 usr + 0.02 sys = 0.03 CPU)
634634
Result: PASS
635635

636636
</pre>
637-
Basically the output includes some statistics and the count of test files processed and the overall number of tests. Also note that the message emitted by <code>diag</code> is in another place: diagnostics by ?Test::More? goes to <code>STDERR</code> (which is buffered differently in respect of <code>STDOUT</code> but this is another story..) and TAP aggregates tests results and prints them to <code>STDOUT</code>
637+
Basically the output includes some statistics and the count of test files processed and the overall number of tests. Also note that the message emitted by <code>diag</code> is in another place: diagnostics by <a href="https://perldoc.perl.org/Test/More.html">Test::More</a> goes to <code>STDERR</code> (which is buffered differently in respect of <code>STDOUT</code> but this is another story..) and TAP aggregates tests results and prints them to <code>STDOUT</code>
638638

639639
Finally we have the developer gratification: <code>Result: PASS</code> indicating all went well.
640640

@@ -836,11 +836,11 @@ dies_ok { Range::Validator::validate('xxxinvalidstringxxx') }
836836
"expected to die with invalid character";
837837

838838
</pre>
839-
First of all we used a different notation for ?Test::More? ie. <code>use Test::More qw(no_plan)</code>
839+
First of all we used a different notation for <a href="https://perldoc.perl.org/Test/More.html">Test::More</a> ie. <code>use Test::More qw(no_plan)</code>
840840

841841
We are telling to the module we (still) have not a plan about how many tests will be in this file. This is a handy feature.
842842

843-
The ?Test::More? core module offers us <code>ok</code> <code>use_ok</code> and <code>note</code> methods: view the module doc for more info about them.
843+
The <a href="https://perldoc.perl.org/Test/More.html">Test::More</a> core module offers us <code>ok</code> <code>use_ok</code> and <code>note</code> methods: view the module doc for more info about them.
844844

845845
But we also used in the above test the <code>dies_ok</code> function: this one comes from the CPAN module <code>Test::Exception</code> and we need to add this module in to our dependencies list.
846846

0 commit comments

Comments
 (0)