Code Monkey home page Code Monkey logo

ft_containers-terminator's Introduction

ft_containers-terminator's People

Contributors

mikastiv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ft_containers-terminator's Issues

[Bug] Compilation error in test vector/insert_size

When trying to compile the test insert_size in vector, I get an compiler error stating that: "'numeric_limits' is not a member of 'std'".

Reproduce:
bash run_test_files.sh vector insert_size.

Possible solution:
include the header limits.

misleading map test

I think there is a misleading error when testing the upper_bound() and equal_range() methods the STL map segfaults when passing the INT_MAX as an argument to the methods and my container has the same behavior but the tester shows me KO I think this case shouldn't be tested or the result get compared with the STL one

        b = m.upper_bound(std::numeric_limits<int>::max());

        PRINT_BOUND(b, m.end());

        m.insert(NAMESPACE::make_pair(std::numeric_limits<int>::max(), "max"));

        b = m.upper_bound(std::numeric_limits<int>::max());

        PRINT_BOUND(b, m.end());

I suggest

        m.insert(NAMESPACE::make_pair(std::numeric_limits<int>::max(), "max"));

        b = m.upper_bound(std::numeric_limits<int>::max() - 1);

        PRINT_BOUND(b, m.end());

capacity of assign_range

Hello, if you want to add it, there is one more test that concerns the assign_range (and ctor_range) capacity
The input iterator and the random access iterator use different techniques of allocating

The first one (input iterator) uses the push-back method, so, the capacity will double as the size becomes equal to it
The second one (random access iterator) will allocate as far as the range distance

WHAT WILL I ADD?

Use PRINT_CAPACITY instead of CHECK_CAPACITY

It will be more efficient, the tester will return KO if the user has not dealt with this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.