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
Operands to min aren't numified, so what are they? #764
Comments
From @masak<masak> rakudo: my @a = 1,2,3; say @a min 4 |
From @masak<pmichaud> anyway, S03 says that "By default C<min> and C<max> use |
From [Unknown Contact. See original ticket]<pmichaud> anyway, S03 says that "By default C<min> and C<max> use |
@masak - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/misc.t commit 824834991801e0e2dd07f36b661c24fac8a241ab [t/spec] Test for RT #63778 Inline Patchdiff --git a/t/spec/S03-operators/misc.t b/t/spec/S03-operators/misc.t
index 9ff23d5..623dbdb 100644
--- a/t/spec/S03-operators/misc.t
+++ b/t/spec/S03-operators/misc.t
@@ -7,7 +7,7 @@ use Test;
Tests for Synopsis 3
=end kwid
-plan 60;
+plan 62;
my $str1 = "foo";
my $str2 = "bar";
@@ -158,3 +158,12 @@ ok(?(42 > 12 & 20 & 32), "test the all infix operator");
is((@a minmax @b), (1,8), 'minmax works when both are on left array');
is((@b minmax @a), (1,8), 'minmax works when both are on right array');
}
+
+# RT #63778
+{
+ my @a = 1, 2, 3;
+ #?rakudo todo 'RT #63778'
+ lives_ok { @a min 4 }, 'lives: @array min 4';
+ #?rakudo skip 'RT #63778'
+ is @a min 4, 1, 'works: @array min 4';
+} |
From @moritzI've opened a spec issues for this at |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63778 (status was 'resolved')
Searchable as RT63778$
The text was updated successfully, but these errors were encountered: