File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 8
8
9
9
## Testing
10
10
11
- ### Monad tests
11
+ ### Role based testing
12
+ From testing perspective, we are applying a role based approach in order to unify the testing
13
+ of the monads and matchable roles. So, in this way, we have just to create tests cases for each role when
14
+ we create a new monad or matchable.
12
15
13
- From testing perspective, we are applying a role based testing approach. In this case,
14
- the role is monad, and we create tests cases for each monad .
16
+ #### Monad
17
+ For this role, ` map ` and ` flatMap ` are the main operations that we have to test .
15
18
16
- check the ` src/monads/monads.test.ts ` folder for more information.
19
+ Check the file ` src/monads/monads.test.ts ` for more information.
17
20
18
- So, you have just to new test cases for your new monad that you are going to implement.
19
-
20
-
21
- ### Matchable tests
22
-
23
- From testing perspective, we are applying a role based testing approach. In this case,
24
- the role is matchable, and we create tests cases for each matchable.
21
+ #### Matchable
22
+ For this role, we have to test the ` match ` operation.
25
23
26
24
check the ` src/matchable/matchable.test.ts ` folder for more information.
27
25
28
- So, you have just to new test cases for your new matchable that you are going to implement.
29
-
30
26
31
27
### Specific tests for each monad
32
28
You can’t perform that action at this time.
0 commit comments