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

colonpairs in [POD] config options always produce strings #3778

Closed
p6rt opened this issue Apr 10, 2015 · 6 comments
Closed

colonpairs in [POD] config options always produce strings #3778

p6rt opened this issue Apr 10, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Apr 10, 2015

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

Searchable as RT124281$

@p6rt
Copy link
Author

p6rt commented Apr 10, 2015

From @labster

All values in $=pod[*]<config> are always Str, even if different types are
specified. :!foo produces foo => "0", which is now true, so this could be
a bit of a problem.

The problem probably lies in Perl6​::Pod​::make_config, right around " # This
is a cheaty and evil hack."

Tests in S26-documentation/09-configuration.t are failing (but skipped)​:

=begin pod
  =for pod :number(42) :zebras :!sheep :feist<1 2 3 4>
=end pod

$r = $=pod[2].contents[0];
is $r.config<number>, 42;
#?rakudo skip 'non-string colonpair pod options'
{
  is $r.config<zebras>, True;
  is $r.config<sheep>, False;
  isa_ok $r.config<sheep>, Bool;
  isa_ok $r.config<feist>, List;
}

@p6rt
Copy link
Author

p6rt commented Dec 4, 2017

@p6rt
Copy link
Author

p6rt commented Jan 18, 2018

From @tbrowder

closed by merge of rakudo PR #​1339

@p6rt
Copy link
Author

p6rt commented Jan 18, 2018

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

@p6rt
Copy link
Author

p6rt commented Jan 18, 2018

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

@p6rt p6rt closed this as completed Jan 18, 2018
@p6rt
Copy link
Author

p6rt commented Jan 19, 2018

From @tbrowder

closed also with tests in merged roast PR #​371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant