Another way to test a variety of inputs is to use a MarkdownTable.
This works particularly well when you want to try the same set of inputs against multiple functions.
Here's an example:
inputs = ["verify json", "verify all", "verify parameters", "verify as json"]
table = MarkdownTable.with_headers(
"Input", "Camel Case", "Snake Case", "Kebab Case"
)
table.add_rows_for_inputs(inputs, to_camel_case, to_snake_case, to_kebab_case)
verify(table)which will produce:
| Input | Camel Case | Snake Case | Kebab Case |
|---|---|---|---|
| verify json | verifyJson | verify_json | verify-json |
| verify all | verifyAll | verify_all | verify-all |
| verify parameters | verifyParameters | verify_parameters | verify-parameters |
| verify as json | verifyAsJson | verify_as_json | verify-as-json |