New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rakudo still parses 'int time', STD.pm doesn't #949
Comments
From @masak<masak> std: int time |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in at least one of these files: t/spec/S32-num/int.t, t/spec/S32-temporal/Temporal.t commit 6d920b0174a83cf0f4d2deefb1cfd07c3d9786e0 [t/spec] Test for RT #65132 Inline Patchdiff --git a/t/spec/S32-num/int.t b/t/spec/S32-num/int.t
index 913b51b..060e3bc 100644
--- a/t/spec/S32-num/int.t
+++ b/t/spec/S32-num/int.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 66;
+plan 68;
# L<S32::Numeric/Num/"=item truncate">
# truncate and int() are synonynms.
@@ -87,4 +87,12 @@ is(int(Inf), Inf, "int Inf is Inf");
is(int(-Inf), -Inf, "int -Inf is -Inf");
is(int(NaN), NaN, "int NaN is NaN");
+# RT #65132
+{
+ #?rakudo todo 'no more prefix:int'
+ eval_dies_ok 'int time', 'dies: int time (prefix:int is gone)';
+ my $t = time;
+ is int($t), $t.int, 'int(time) == time.int'
+}
+
# vim: ft=perl6
diff --git a/t/spec/S32-temporal/Temporal.t b/t/spec/S32-temporal/Temporal.t
index c42ce6a..0db2cf1 100644
--- a/t/spec/S32-temporal/Temporal.t
+++ b/t/spec/S32-temporal/Temporal.t
@@ -73,7 +73,7 @@ ok $g1.epoch==3661, "epoch at 1970-01-01 01:01:01"; # test 15
ok ~$g1 eq '1970-01-01T01:01:01+0100', "as Str 1970-01-01T01:01:01+0100"; # test 16
# round trip test for current number of seconds in the Unix epoch
-$t = int time;
+$t = time.int;
my @t = test_gmtime( $t );
$g1 = Temporal::DateTime.new(
date => Temporal::Date.new( :year(@t[5]+1900), :month(@t[4]+1), :day(@t[3]) ), |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzprefix:<int> is long gone; currently rakudo parses 'int time' as an |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#65132 (status was 'resolved')
Searchable as RT65132$
The text was updated successfully, but these errors were encountered: