Code Monkey home page Code Monkey logo

ft_containers-unit-test--fork's Introduction

ft_containers-unit-test

screenshot

About

ft_containers-unit-test is a complete testing for project of school 21/ecole 42 and allowing you test your containers: Vector, Stack, Map, Set and Utilities in ft namespace.
This test checks 90% of subject and checklist requires: using std allocator, iterator traits, benchmark, leaks, segfaults, timeouts etc. But keep in mind that test doesn't check something you don't need to implement and was written by students, so im waiting for your bugs or suggestions for improving

Getting started

โฌ‡๏ธ 1. Installation

run this command inside your ft_containers folder:

git clone https://github.com/divinepet/ft_containers-unit-test

then

cd ft_containers-unit-test

now you need to configure file config.hpp and write correct names of all your files and classes

๐Ÿ›  2. Configure your config.hpp

if you haven't some class implementation yet, for example Map, you need to comment appropriate line in config.hpp:

// #define MAP     "../../../Map.hpp"

and etc. for other. The same with flags - uncomment this line to enable them

#define FLAGS

๐Ÿ“ 3. Run start.sh

Now you can execute start.sh and testing will start

Also you can run tests with a specific container, use flags for this:

./start.sh -v # for vector
./start.sh -u # for utilities
./start.sh -st # for stack
./start.sh -m # for map
./start.sh -s # for set
./start.sh -h # help with commands

Use the -fast flag to run the test in simplified mode - the amount of data processed by each container is reduced to speed up its execution.

๐Ÿง Running on Linux

In most cases it should resolve many conflicts:

  1. comment these lines: line 32, line 35, line 24
  2. add libraries in this file:
#include <string.h>
#include <sys/wait.h>
  1. remove this file from project

Results

NOT COMPILED means that method compiles with errors, also probably some template name in config.hpp is incorrect
TIMEOUT means the method exceeded the maximal execution time, probably due to an infinite loop

Press Star โญ button at the top right corner of page if this test was useful to you, so that more people can see it

ft_containers-unit-test--fork's People

Contributors

divinepet avatar bendordie avatar 01zero10 avatar nicolasgasco avatar

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.