Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep authored Jun 4, 2019
1 parent d2efeff commit 9c43791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This test matrix can be generated with cartesian product configurations or a set
An example of #testParameters is:

```Smalltalk
testParameters
MyTestCase class >> testParameters
^ ParametrizedTestMatrix new
forSelector: #option1 addOptions: #(a b c);
Expand All @@ -57,7 +57,7 @@ The API is quite simple, but there are two simple examples to show the use of ge
The example class *PaSimpleMatrixExampleTest* shows an example of a matrix.

```Smalltalk
testParameters
PaSimpleMatrixExampleTest class >> testParameters
^ ParametrizedTestMatrix new
forSelector: #item1 addOptions: { 1. 'a'. $c };
Expand All @@ -70,12 +70,12 @@ This example generates 81 different cases, with all the combinations.
The second example uses a set of given cases. This example is shown in the test class *PaSelectedCasesExampleTest*

```Smalltalk
testParameters
PaSelectedCasesExampleTest class >> testParameters
^ ParametrizedTestMatrix new
addCase: { #number1 -> 2. #number2 -> 1.0. #result -> 3 };
addCase: { #number1 -> (2/3). #number2 -> (1/3). #result -> 1 };
yourself
```

This example generates exactly the two cases listed in the test.
This example generates exactly the two cases listed in the test.

0 comments on commit 9c43791

Please sign in to comment.