Testing custom standard compliant containers
I am making custom versions of the standard containers (many reasons, the main one being educational). The containers have the same interface as the standard containers. Now I want to test the containers properly. Is there perchance tests written for the standard library that can potentially be us开发者_高级运维ed on any standard compliant container to make sure the containers are working as they should?
I am currently writing my own tests and going with some examples found on www.cplusplus.com but they are definitely not exhaustive.
Yeah, take a look in libstdc++ and libc++. You should find something there.
精彩评论