You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/tutorial-english.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -636,7 +636,7 @@ <h4>step 2) first test</h4>
636
636
Result: PASS
637
637
638
638
</pre>
639
-
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>
639
+
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 <ahref="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>
640
640
641
641
Finally we have the developer gratification: <code>Result: PASS</code> indicating all went well.
642
642
@@ -838,11 +838,11 @@ <h4>step 2) testing on our own</h4>
838
838
"expected to die with invalid character";
839
839
840
840
</pre>
841
-
First of all we used a different notation for ?Test::More? ie. <code>use Test::More qw(no_plan)</code>
841
+
First of all we used a different notation for <ahref="https://perldoc.perl.org/Test/More.html">Test::More</a> ie. <code>use Test::More qw(no_plan)</code>
842
842
843
843
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.
844
844
845
-
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.
845
+
The <ahref="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.
846
846
847
847
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.
0 commit comments