Add negative tests for `type_constructor`
dmvict opened this issue · comments
Add negative tests for module type_constructor
.
Module type_constructor
https://github.com/Wandalen/wTools/tree/alpha/module/rust/type_constructor
Link on directory with tests for module type_constructor
https://github.com/Wandalen/wTools/tree/alpha/rust/test/dt/type_constructor
Write tests for implementation of single, homopair, pair and many.
Negative testing :
- test that throws compile time errors
- test that throws runtime errors
For example, the mismatched types error is the compile time error.
Use trybuild
to test compile time errors.
Example of such test
Accept