Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add another list example
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2eed8fcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That example is confusing, because that will pass in strings
"$e1"and"$e2"2eed8fcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be a no-test example. The text following says what the $eN's mean, they're constants of various types (Str, Int or Num) as appropriate for the container.
2eed8fcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you are saying that we should allow examples which are not valid Perl 6.
2eed8fcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, those examples are used all the time to show, for instance, what is not valid Perl 6. There's a provision for that when testing examples in the shape of a
:skip-testattribute.2eed8fcThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@b2gills example I don't think is correct. The dd... was in the REPL and not an actual config example. If I can't get a real example config to work, then I will change the "$eN"'s to something like 'Cn' (and ":skip-test"). The fact that the example is a table definitely requires a ":skip-test" since the table cells are NOT %config entries--much different parsing!
Note it may help to use just a few examples in a real pod %config. I'll work on that, too.