Skip to content

Commit f134bce

Browse files
committed
Changes item to head2, refs #2330
1 parent c6bf737 commit f134bce

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

doc/Type/Test.pod6

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ L«C<bail-out>|/language/testing#index-entry-bail-out-bail-out($reason?)» to fa
5858
test run without running any further tests (i.e. things are so bad, there's no point
5959
in running anything else; we've failed).
6060
61-
=item done-testing
61+
=head2 done-testing
6262
6363
Defined as:
6464
@@ -270,9 +270,14 @@ is-approx $value, $expected, :rel-tol<.5>, :abs-tol<10>;
270270
When both absolute and relative tolerances are specified, each will be
271271
tested independently, and the C<is-approx> test will succeed only if both pass.
272272
273-
=head2 By structural comparison
273+
=head2 is-deeply
274274
275-
=item X<is-deeply($value, $expected, $description?)|is-deeply>
275+
Defined as:
276+
277+
multi sub is-deeply(Seq:D $got, Seq:D $expected, $reason = '')
278+
multi sub is-deeply(Seq:D $got, Mu $expected, $reason = '')
279+
multi sub is-deeply(Mu $got, Seq:D $expected, $reason = '')
280+
multi sub is-deeply(Mu $got, Mu $expected, $reason = '')
276281
277282
Marks a test as passed if C<$value> and C<$expected> are equivalent, using the
278283
same semantics as the L<eqv operator|/routine/eqv>. This is the best way to
@@ -415,7 +420,13 @@ Marks a test as passed if the C<$value>, when coerced to a string, matches the
415420
C<$expected-regex>. The function accepts an optional C<$description> of the
416421
test.
417422
418-
=item X<unlike($value, $expected-regex, $description?)|unlike>
423+
=head2 unlike
424+
425+
Defined as:
426+
427+
multi sub unlike(Str() $got, Regex:D $expected,$desc = "text does not match $expected.perl()")
428+
429+
Used this way:
419430
420431
unlike 'foo', /bar/, 'foo does not look like bar';
421432
@@ -645,7 +656,7 @@ Note that if you C<todo> a C<subtest>, all of the failing tests inside of it
645656
will be automatically marked TODO as well and will I<not> count towards your
646657
original TODO count.
647658
648-
=item skip($reason, $count = 1)
659+
=head2 skip
649660
650661
Defined as:
651662

0 commit comments

Comments
 (0)