JakobTopholt / P4-Unitino

SW4 project at AAU creating our own compiler
4 stars 0 forks source link

Cleaner unittests #66

Open AleksanderRDL opened 1 year ago

AleksanderRDL commented 1 year ago

Reformat unittests to better seperate what the test evaluates. The content of the unittests should also be made sure it covers all possible usecases of the tested logic. (eg. if it is a plusAssign test, the test should try and plusAssign with all possible types and cases which plusAssign can appear in)

Aavild commented 1 year ago

Also add so that either a typecheck evaluates true or check that exception is created correctly. (so no longer true/false but rather true/exceptiontrace)