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

Permit multiline arguments for custom comparators #1142

Merged
merged 1 commit into from Dec 22, 2018

Conversation

Projects
None yet
2 participants
@dcutting
Copy link

commented Jun 11, 2018

This pull request permits line terminators in the arguments to custom comparators such that you can use pre-formatted blocks in your tables.

This is particularly useful when comparing JSON; it's much more readable to format longer JSON snippets over multiple lines.

E.g.:

|Animals API                     |
|URL                 |response?  |
|/names/dreadnoughtus|json:{{{!-{
  "name": "Dreadnoughtus",
  "order": "Saurischia",
  "kingdom": "Animalia"
}-!}}}|

screen shot 2018-06-11 at 14 45 49

@fhoeben fhoeben merged commit b0783ab into unclebob:master Dec 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.