Inside your project directory, clone the tests using:
$ git clone https://github.com/yairfine/cpp-hashmap-tests.git
Copy your HashMap.hpp
file to the tests directory, using:
WINDOWS: $ copy .\HashMap.hpp .\cpp-hashmap-tests
LINUX: $ cp HashMap.hpp ./cpp-hashmap-tests
Move to the tests directory, using:
$ cd cpp-hashmap-tests
Compile the tests, using:
$ g++ tests.cpp -std=c++14 -o compiledTests
Run the tests, using:
WINDOWS: $ .\compiledTests.exe
LINUX: $ ./compiledTests
For running with Valgrind, compile again with -DVAL
flag:
$ g++ tests.cpp -std=c++14 -DVAL -o compiledTests
And run:
$ valgrind --leak-check=full --track-origins=yes compiledTests