@@ -59,22 +59,23 @@ Here's an example:
5959<a id =' snippet-markdown_table_example ' ></a >
6060``` java
6161String [] inputs = {" verify json" , " verify all" , " verify parameters" , " verify as json" };
62- MarkdownTable table = MarkdownTable . withHeaders(" Input" , " Camel Case" , " Snake Case" , " Kebab Case" );
62+ VerifiableMarkdownTable table = VerifiableMarkdownTable . withHeaders(" Input" , " Camel Case" , " Snake Case" ,
63+ " Kebab Case" );
6364table. addRowsForInputs(inputs, this :: toCamelCase, this :: toSnakeCase, this :: toKebabCase);
6465Approvals . verify(table);
6566```
66- <sup ><a href =' /approvaltests-tests/src/test/java/org/approvaltests/TableTest.java#L19-L24 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-markdown_table_example ' title =' Start of snippet ' >anchor</a ></sup >
67+ <sup ><a href =' /approvaltests-tests/src/test/java/org/approvaltests/TableTest.java#L20-L26 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-markdown_table_example ' title =' Start of snippet ' >anchor</a ></sup >
6768<!-- endSnippet -->
6869
6970which will produce:
7071
7172<!-- include: TableTest.differentCases.approved.md -->
72- | Input | Camel Case | Snake Case | Kebab Case |
73- | --- | --- | --- | --- |
74- | verify json | verifyJson | verify_json | verify-json |
75- | verify all | verifyAll | verify_all | verify-all |
73+ | Input | Camel Case | Snake Case | Kebab Case |
74+ | ------------------- | ------------------ | ------------------- | ------------------- |
75+ | verify json | verifyJson | verify_json | verify-json |
76+ | verify all | verifyAll | verify_all | verify-all |
7677| verify parameters | verifyParameters | verify_parameters | verify-parameters |
77- | verify as json | verifyAsJson | verify_as_json | verify-as-json |
78+ | verify as json | verifyAsJson | verify_as_json | verify-as-json |
7879<!-- endInclude -->
7980
8081
0 commit comments