Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 790 Bytes

File metadata and controls

41 lines (28 loc) · 790 Bytes

Compiling and executing the tests

make test
./test

or compile and execute in a single command :

make tests

Caution

If you notice some modules are poorly tested, it's mainly because the classmates in charge of testing them didn't do much
(Of course it wasn't those mentioned in the README.md !)

How to use Valgrind

Valgrind is a useful tool to check if there are memory leaks when we forget to free allocated resources

  • To detect memory leaks in the main program spellchecker
make valgrind
  • To detect memory leaks in the test files used in the binary file test
make valgrind-test
  • To detect all the memory leaks (spellchecker and test)
make valgrind-all