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

(PUP-5875) Add to_s to Iterator runtime implementation #4653

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

thallgren
Copy link
Contributor

Before this commit, the Iterator runtime implementation had no to_s
method. This commit adds that so that it prints:

"Iterator[T] value"

instead of the default and somewhat incomprehensible:

"Puppet::Pops::Types::Iterator:0x007f93ec28f938"

The commit also adds some missing tests for Iterable and Iterator
to_s methods.

Before this commit, the Iterator runtime implementation had no to_s
method. This commit adds that so that it prints:

"Iterator[T] value"

instead of the default and somewhat incomprehensible:

"<Puppet::Pops::Types::Iterator:0x007f93ec28f938>"

The commit also adds some missing tests for Iterable and Iterator
to_s methods.
hlindberg added a commit that referenced this pull request Feb 11, 2016
(PUP-5875) Add to_s to Iterator runtime implementation
@hlindberg hlindberg merged commit dde0e3c into puppetlabs:master Feb 11, 2016
@thallgren thallgren deleted the issue/pup-5875/iterator-to_s branch February 20, 2016 12:28
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

Successfully merging this pull request may close these issues.

2 participants