@@ -58,7 +58,7 @@ L«C<bail-out>|/language/testing#index-entry-bail-out-bail-out($reason?)» to fa
58
58
test run without running any further tests (i.e. things are so bad, there's no point
59
59
in running anything else; we've failed).
60
60
61
- = item done-testing
61
+ = head2 done-testing
62
62
63
63
Defined as:
64
64
@@ -270,9 +270,14 @@ is-approx $value, $expected, :rel-tol<.5>, :abs-tol<10>;
270
270
When both absolute and relative tolerances are specified, each will be
271
271
tested independently, and the C < is-approx > test will succeed only if both pass.
272
272
273
- = head2 By structural comparison
273
+ = head2 is-deeply
274
274
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 = '')
276
281
277
282
Marks a test as passed if C < $value > and C < $expected > are equivalent, using the
278
283
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
415
420
C < $expected-regex > . The function accepts an optional C < $description > of the
416
421
test.
417
422
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:
419
430
420
431
unlike 'foo', /bar/, 'foo does not look like bar';
421
432
@@ -645,7 +656,7 @@ Note that if you C<todo> a C<subtest>, all of the failing tests inside of it
645
656
will be automatically marked TODO as well and will I < not > count towards your
646
657
original TODO count.
647
658
648
- = item skip($reason, $count = 1)
659
+ = head2 skip
649
660
650
661
Defined as:
651
662
0 commit comments