@@ -268,8 +268,8 @@ is-approx $value, $expected, :$abs-tol, :$rel-tol, 'test description';
268
268
269
269
= head3 Absolute tolerance
270
270
271
- When an absolute tolerance is set, it's used as the actual maximum value by
272
- which the C < $value > and C < $expected > can differ. For example:
271
+ When an absolute tolerance is set, it's used as the actual maximum value
272
+ by which the first and the second parameters can differ. For example:
273
273
274
274
= begin code :preamble<use Test;>
275
275
is-approx 3, 4, 2; # success
@@ -341,7 +341,7 @@ Defined as:
341
341
multi sub is-deeply(Mu $got, Seq:D $expected, $reason = '')
342
342
multi sub is-deeply(Mu $got, Mu $expected, $reason = '')
343
343
344
- Marks a test as passed if C < $value > and C < $expected > are equivalent, using the
344
+ Marks a test as passed if the first and second parameters are equivalent, using the
345
345
same semantics as the L < eqv operator|/routine/eqv > . This is the best way to
346
346
check for equality of (deep) data structures. The function accepts an optional
347
347
description of the test as the last argument.
@@ -487,9 +487,10 @@ Use it this way:
487
487
= for code :preamble<use Test;>
488
488
like 'foo', /fo/, 'foo looks like fo';
489
489
490
- Marks a test as passed if the C < $value > , when coerced to a string, matches the
491
- C < $expected-regex > . The function accepts an optional description of the
492
- test with a default value printing the expected match.
490
+ Marks a test as passed if the first parameter when coerced to a string,
491
+ matches the regular expression specified as the second parameter.
492
+ The function accepts an optional description of the test with a default
493
+ value printing the expected match.
493
494
494
495
= head2 sub unlike
495
496
@@ -502,9 +503,10 @@ Used this way:
502
503
= for code :preamble<use Test;>
503
504
unlike 'foo', /bar/, 'foo does not look like bar';
504
505
505
- Marks a test as passed if the C < $value > , when coerced to a string, does B < not >
506
- match the C < $expected-regex > . The function accepts an optional description
507
- of the test, which defaults to printing the text that did not match.
506
+ Marks a test as passed if the first parameter, when coerced to a string,
507
+ does B < not > match the regular expression specified as the second
508
+ parameter. The function accepts an optional description of the test,
509
+ which defaults to printing the text that did not match.
508
510
509
511
= head2 sub use-ok
510
512
0 commit comments