Skip to content
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

Closed
p6rt opened this issue Jul 24, 2009 · 9 comments
Closed

Error with stringifying .WHAT on any junctions #1167

p6rt opened this issue Jul 24, 2009 · 9 comments
Labels
Bug LHF Low-hanging fruit, easy to resolve

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2009

Migrated from rt.perl.org#67866 (status was 'resolved')

Searchable as RT67866$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

From @pmichaud

19​:37 <pmichaud_> rakudo​: say any("foo","bar").WHAT
19​:37 <p6eval> rakudo dd5767​: OUTPUT«Null PMC access in get_integer()␤in Main (/tmp/zy3y7E7waD​:2)␤»

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From @moritz

On Fri Jul 24 12​:46​:26 2009, pmichaud wrote​:

19​:37 <pmichaud_> rakudo​: say any("foo","bar").WHAT
19​:37 <p6eval> rakudo dd5767​: OUTPUT«Null PMC access in
get_integer()␤in Main (/tmp/zy3y7E7waD​:2)␤»

This is fixed now, and can be closed when we have tests.

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From mestre.smash@gmail.com

On Tue Sep 15 11​:49​:49 2009, moritz wrote​:

On Fri Jul 24 12​:46​:26 2009, pmichaud wrote​:

19​:37 <pmichaud_> rakudo​: say any("foo","bar").WHAT
19​:37 <p6eval> rakudo dd5767​: OUTPUT«Null PMC access in
get_integer()␤in Main (/tmp/zy3y7E7waD​:2)␤»

This is fixed now, and can be closed when we have tests.

The attached file adds a couple of tests for the described issue.

--
./smash

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From mestre.smash@gmail.com

misc.t.patch
Index: 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

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From mestre.smash@gmail.com

On Tue Sep 15 13​:01​:23 2009, smash wrote​:

On Tue Sep 15 11​:49​:49 2009, moritz wrote​:

On Fri Jul 24 12​:46​:26 2009, pmichaud wrote​:

19​:37 <pmichaud_> rakudo​: say any("foo","bar").WHAT
19​:37 <p6eval> rakudo dd5767​: OUTPUT«Null PMC access in
get_integer()␤in Main (/tmp/zy3y7E7waD​:2)␤»

This is fixed now, and can be closed when we have tests.

The attached file adds a couple of tests for the described issue.

Committed in pugs repository in revision 28245.

--
./smash

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S03-junctions/misc.t

commit d6349a067afa245032afbf886065e5753c08ea53
Author​: smash <smash@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Tue Sep 15 20​:13​:00 2009 +0000

  * add tests for RT#​67866
 
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;28245 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --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

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

From @moritz

Tests added by smash++ to S03-junctions/misc.t

@p6rt
Copy link
Author

p6rt commented Sep 15, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 15, 2009
@p6rt p6rt added Bug LHF Low-hanging fruit, easy to resolve labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug LHF Low-hanging fruit, easy to resolve
Projects
None yet
Development

No branches or pull requests

1 participant