This is a unit tester written with Catch2 in C++98 to test home made implementations of stl containers vector, map, stack and set. It was build apon the specifications found on https://cplusplus.com/ and https://cppreference.com/.
- Clone the repository to your local machine.
- Navigate to the root directory of the project.
- Modify the
HDRS
variable in theMakefile
to point to the directory containing your implementations. - Run
make
to compile the tester.
- C++98
The Makefile contains several rules:
all
: Compiles the tester.clean
: Removes the object files and dependency files.fclean
: Removes the compiled executable, object files, and dependency files.re
: Runsfclean
and thenall
.
Executing ./unit_test
will run all the tests for the containers you implemented. It will only display the outputs of the tests that failed. You can use some flags to modify the behaviour of the tester. these flags are implemented by Catch2.
./unit_test -h
will print all the flags implemented natively by Catch2./unit_test -s
will display also the tests that succeed./unit_test "[benchmark]" -d yes
will execute only the benchmark test and print durations for each of the tests.
Bug reports and pull requests are welcome on GitHub at https://github.com/misteriaud/stl_containters_unit_tester.
The project is available as open source under the terms of the MIT License.