Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit tests for std::map

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

The reason I ask is because I have written a class that acts as a replacment for std::map and has virtually all the same functionality, so unit tests for std::map will be suitable for my class, too.

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

Thanks.

like image 760
Peter Alexander Avatar asked Jul 09 '10 10:07

Peter Alexander


2 Answers

While i don't know how much is needed to use them stand-alone, you could take a look at libstdc++' testsuite.

like image 115
Georg Fritzsche Avatar answered Sep 22 '22 18:09

Georg Fritzsche


Try to find it in open source library implementations like:

libstdc++ libc++

like image 26
Ricardo Muñoz Avatar answered Sep 25 '22 18:09

Ricardo Muñoz