Skip to content

edugomz/cpp_containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of some C++ data structures

unit test using the ut library: https://github.com/boost-ext/ut

Goal

The goal of this project was to learn TDD best practices using the STL containers to write tests and then implement my own version of the containers trying to mimic the original behaviour, so the same test should pass.

Suite 'std::vector': all tests passed (36 asserts in 27 tests)
Suite 'edgs::vector': all tests passed (36 asserts in 27 tests)
Suite 'std::pair': all tests passed (9 asserts in 9 tests)
Suite 'edgs::pair': all tests passed (9 asserts in 9 tests)
Suite 'std::map': all tests passed (24 asserts in 23 tests)
Suite 'edgs::map': all tests passed (24 asserts in 23 tests)
Suite 'std::set': all tests passed (30 asserts in 21 tests)
Suite 'edgs::set': all tests passed (30 asserts in 21 tests)
Suite 'std::list': all tests passed (20 asserts in 19 tests)
Suite 'edgs::list': all tests passed (20 asserts in 19 tests)
Suite 'std::array': all tests passed (22 asserts in 24 tests)
Suite 'edgs::array': all tests passed (22 asserts in 24 tests)

Suite 'edgs::util': all tests passed (6 asserts in 5 tests)

About

Implementation of containers while brushing up on data structures. includes unit tests.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors