Skip to content

Commit a034c77

Browse files
committed
[v6.d REVIEW] Formatting fixes
- Toss Perl-5-ism and useless variables - Improve test descriptions Orig: 8650ef2
1 parent 78c3c86 commit a034c77

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

S02-types/instants-and-durations.t

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ throws-like { Instant.new(123) }, X::Cannot::New, 'Instant.new is illegal';
4141
is $t0 + ($t1 - $t0), $t1, 'Instant A + (Instant B - Instant A) == Instant B';
4242
}
4343

44-
{
45-
for (-2**63, -400.2, -33/7, -1, 0, 1, 33/7, 400.2, 2**32, ) -> $e {
46-
my $i = Instant.from-posix($e, False);
47-
is $i.perl.EVAL, $i, 'Instant round trips properly';
48-
my $i = Instant.from-posix($e, True);
49-
is $i.perl.EVAL, $i, 'Instant round trips properly';
50-
}
44+
for -2**63, -400.2, -33/7, -1, 0, 1, 33/7, 400.2, 2**32 -> $e {
45+
is-deeply .perl.EVAL, $_, "Instant round trips properly .($e, False)"
46+
with Instant.from-posix: $e, False;
47+
is-deeply .perl.EVAL, $_, "Instant round trips properly .($e, True)"
48+
with Instant.from-posix: $e, True;
5149
}
5250

5351
# RT #132006

0 commit comments

Comments
 (0)