Skip to content

mfunyu/tester_ft_containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tester_ft_containers

Normal Test Benchmark Test
Screen Shot 2022-05-25 at 13 03 05 Screen Shot 2022-05-25 at 13 06 58

Tester for level 5 project "ft_containers" @42Tokyo

⚠️ Important notes :

  • All functions including vector::data(), map::at(), and reverse_iterator::operator= need to be implemented for this tester to compile.
  • Not all features are tested

Usage

Directory structure

  • Expected default directory structure
    .
    |- ft_containers/
    |- tester_ft_containers/
    
  • Edit PATH_TO_YOUR_CONTAINER in Makefile
    # ---------------------------------------------------------------------------- #
    # set path to your ft_container
    
    PATH_TO_YOUR_CONTAINER := ../ft_containers/includes/

Run

Normal Test

./grademe.sh
Individual test
./grademe.sh vector

Benchmark Test

make bench
./bench_test
Individual test

⚠️ Compilation requires all the containers

./bench_test map

Results

Result Description
SS 2022-05-18 14 11 56 The function passed the test.
SS 2022-05-18 14 25 48 3
SS 2022-05-18 14 50 21
SS 2022-05-18 14 25 48 2 2
The function failled the test.
SS 2022-05-18 14 25 48 The function taking more than 1 second on the test. Considered as timeout.
SS 2022-05-18 15 34 00 The test result differs from std, but the behaviour is undefined.

Demo

Normal Test

SS 2022-05-18 14 50 21

Benchmark Test

SS 2022-05-18 14 36 47

Reference