Unit tests for std :: map

Does anyone know where I can find unit tests that will check std::map ?

I ask because I wrote a class that acts as a replacement for std::map and has almost all the same functionality, so unit tests for std::map also suitable for my class.

Of course, I can write my own, but if someone has already written extensive tests for this, it will save me a lot of time and, hopefully, will cover things that I might have missed.

Thanks.

+4
source share
3 answers

As long as I don't know how much it takes to use it offline, you can take a look at libstdc ++ 'testsuite .

+3
source

Try to find it in open source library implementations, for example:

libstdc ++ libC ++

+3
source

The Standard C ++ Template Library book by Plauger et al. Provides code for an example STL implementation with test code for all types. I do not know from memory if the code is available online.

+2
source

Source: https://habr.com/ru/post/1315184/


All Articles