Skip to content

(PUP-4643) Add acceptance for return,break,next#5259

Merged
er0ck merged 1 commit intopuppetlabs:masterfrom
johnduarte:pup-4643-acceptance-return-next-break
Sep 29, 2016
Merged

(PUP-4643) Add acceptance for return,break,next#5259
er0ck merged 1 commit intopuppetlabs:masterfrom
johnduarte:pup-4643-acceptance-return-next-break

Conversation

@johnduarte
Copy link
Contributor

This commit adds acceptance tests for the new return, break,
and next iteration control functions introduced as per PUP-4643.

return($secret_word)
notify{ 'You should not see this message': }
}
return('')
Copy link
Contributor

@er0ck er0ck Sep 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might want to put some code after the return() and assert we never get there. as you did in the return from a class, above.

This commit adds acceptance tests for the new `return`, `break`,
and `next` iteration control functions introduced as per PUP-4643.
@johnduarte johnduarte force-pushed the pup-4643-acceptance-return-next-break branch from abe3558 to e3d4250 Compare September 6, 2016 18:40
@puppetcla
Copy link

CLA signed by all contributors.

@er0ck er0ck merged commit d8e3bfc into puppetlabs:master Sep 29, 2016
@johnduarte johnduarte deleted the pup-4643-acceptance-return-next-break branch December 7, 2016 16:57
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.

3 participants