Each case has 4 fields : type1, type2, result, operation. Cases are grouped based on type1/2 and operation into a suite. The files mult/add/div/cast.cc fetch all cases with the corresponding operation and run them.
- add your test cases in
safe_numerics_test/cases.h. - If you add a case with new types make sure to do the following:
- define the
TestSuiteconstructor if you are testing for a new combination of types. - Add your cases in the corresponding operation type file(mult.cc/add.cc/div.cc/cast.cc).
- Refer to these files for the exact details.
- define the
- If you add a case with a new operator make sure to run the cases in
main.cc.