Skip to content

Commit 2c30c0f

Browse files
committed
d updated markdown snippets
1 parent d6760ab commit 2c30c0f

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

approvaltests/docs/how_to/TestAVarietyOfValues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you have more than one parameter that you want to vary, check out [Testing Co
2222
<a id='snippet-verifyallstartingpoint'></a>
2323
```java
2424
String[] inputs = {"input.value1", "input.value2"};
25-
Approvals.verifyAll("TITLE", inputs,s -> "placeholder " + s);
25+
Approvals.verifyAll("TITLE", inputs, s -> "placeholder " + s);
2626
```
2727
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/ApprovalsTest.java#L40-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-verifyallstartingpoint' title='Start of snippet'>anchor</a></sup>
2828
<!-- endSnippet -->

approvaltests/docs/how_to/TestCombinations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you have only one parameter that you want to vary, check out [How to Test a V
2424
```java
2525
String[] inputs1 = {"input1.value1", "input1.value2"};
2626
String[] inputs2 = {"input2.value1", "input2.value2", "input2.value3"};
27-
CombinationApprovals.verifyAllCombinations((a,b) -> "placeholder", inputs1, inputs2);
27+
CombinationApprovals.verifyAllCombinations((a, b) -> "placeholder", inputs1, inputs2);
2828
```
2929
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/combinations/CombinationTest.java#L42-L46' title='Snippet source file'>snippet source</a> | <a href='#snippet-combinationsstartingpoint' title='Start of snippet'>anchor</a></sup>
3030
<!-- endSnippet -->
@@ -38,11 +38,11 @@ matters at this point: all combinations of your own input values should be liste
3838
<!-- snippet: CombinationTest.templateCode.approved.txt -->
3939
<a id='snippet-CombinationTest.templateCode.approved.txt'></a>
4040
```txt
41-
[input1.value1, input2.value1] => placeholder
42-
[input1.value1, input2.value2] => placeholder
43-
[input1.value1, input2.value3] => placeholder
44-
[input1.value2, input2.value1] => placeholder
45-
[input1.value2, input2.value2] => placeholder
41+
[input1.value1, input2.value1] => placeholder
42+
[input1.value1, input2.value2] => placeholder
43+
[input1.value1, input2.value3] => placeholder
44+
[input1.value2, input2.value1] => placeholder
45+
[input1.value2, input2.value2] => placeholder
4646
[input1.value2, input2.value3] => placeholder
4747
```
4848
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/combinations/CombinationTest.templateCode.approved.txt#L1-L6' title='Snippet source file'>snippet source</a> | <a href='#snippet-CombinationTest.templateCode.approved.txt' title='Start of snippet'>anchor</a></sup>
@@ -74,11 +74,11 @@ The format is carefully chosen to show both inputs and outputs, to make the test
7474
<!-- snippet: CombinationTest.testCombinationsOfTwo.approved.txt -->
7575
<a id='snippet-CombinationTest.testCombinationsOfTwo.approved.txt'></a>
7676
```txt
77-
[hello, 1] => (hello,1)
78-
[hello, 2] => (hello,2)
79-
[hello, 3] => (hello,3)
80-
[world, 1] => (world,1)
81-
[world, 2] => (world,2)
77+
[hello, 1] => (hello,1)
78+
[hello, 2] => (hello,2)
79+
[hello, 3] => (hello,3)
80+
[world, 1] => (world,1)
81+
[world, 2] => (world,2)
8282
[world, 3] => (world,3)
8383
```
8484
<sup><a href='/approvaltests-tests/src/test/java/org/approvaltests/combinations/CombinationTest.testCombinationsOfTwo.approved.txt#L1-L6' title='Snippet source file'>snippet source</a> | <a href='#snippet-CombinationTest.testCombinationsOfTwo.approved.txt' title='Start of snippet'>anchor</a></sup>

approvaltests/docs/reference/CombinationApprovals.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
toc
1+
<!-- toc -->
2+
## Contents
3+
4+
* [Verifying a Variety of Inputs](#verifying-a-variety-of-inputs)<!-- endToc -->
25

36
## Verifying a Variety of Inputs
47

0 commit comments

Comments
 (0)