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
Error with stringifying .WHAT on any junctions #1167
Comments
From @pmichaud19:37 <pmichaud_> rakudo: say any("foo","bar").WHAT |
From @moritzOn Fri Jul 24 12:46:26 2009, pmichaud wrote:
This is fixed now, and can be closed when we have tests. |
The RT System itself - Status changed from 'new' to 'open' |
From mestre.smash@gmail.comOn Tue Sep 15 11:49:49 2009, moritz wrote:
The attached file adds a couple of tests for the described issue. -- |
From mestre.smash@gmail.commisc.t.patchIndex: t/spec/S03-junctions/misc.t
===================================================================
--- t/spec/S03-junctions/misc.t (revision 28243)
+++ t/spec/S03-junctions/misc.t (working copy)
@@ -2,7 +2,7 @@
use Test;
-plan 99;
+plan 103;
=begin pod
@@ -425,4 +425,12 @@
is rt63686(), 'happiness', 'for loop over junction in sub';
}
+# RT#67866: [BUG] [LHF] Error with stringifying .WHAT on any junctions
+{
+ ok((WHAT any()) === Junction, "test WHAT on empty any junction");
+ ok(any().WHAT === Junction, "test WHAT on empty any junction");
+ ok((WHAT any(1,2)) === Junction, "test WHAT on any junction");
+ ok(any(1,2).WHAT === Junction, "test WHAT on any junction");
+}
+
# vim: ft=perl6
|
From mestre.smash@gmail.comOn Tue Sep 15 13:01:23 2009, smash wrote:
Committed in pugs repository in revision 28245. -- |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-junctions/misc.t commit d6349a067afa245032afbf886065e5753c08ea53 * add tests for RT#67866 Inline Patchdiff --git a/t/spec/S03-junctions/misc.t b/t/spec/S03-junctions/misc.t
index 46043de..e4d7f05 100644
--- a/t/spec/S03-junctions/misc.t
+++ b/t/spec/S03-junctions/misc.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 99;
+plan 103;
=begin pod
@@ -425,4 +425,12 @@ sub junction_diff(Object $this, Object $that) {
is rt63686(), 'happiness', 'for loop over junction in sub';
}
+# RT#67866: [BUG] [LHF] Error with stringifying .WHAT on any junctions
+{
+ ok((WHAT any()) === Junction, "test WHAT on empty any junction");
+ ok(any().WHAT === Junction, "test WHAT on empty any junction");
+ ok((WHAT any(1,2)) === Junction, "test WHAT on any junction");
+ ok(any(1,2).WHAT === Junction, "test WHAT on any junction");
+}
+
# vim: ft=perl6 |
From @moritzTests added by smash++ to S03-junctions/misc.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#67866 (status was 'resolved')
Searchable as RT67866$
The text was updated successfully, but these errors were encountered: