With this tester, you get 2 executables.
The tester will make
the project for you and automatically test it
It will display:
ok
and ko
It will also test your project to see if you handle all possible errors
git clone https://github.com/tricaducee/Push_Swap_Tester.git
cd Push_Swap_Tester
The file is named : test
./test
Some of the result may go through even if it's not [ok]
For exemple when you return nothing instead of Error (with a newline)
If the executable isn't present, make
Run the checker like this: ../push_swap $ARG | ./checker $ARG
If you want to add flags
Descriptions of flags:
-m
or -min
: Display small ok
and ko
instead of ascii art-p
or -percent
: Affiche % of work completed, may not work on everyone's project-c
or -cmds
: Display the amount of command-s
or -stacks
: Display stack in real time the terminalThese commands can be done at the same time, such as: -scp
or -pms
-l={VALUE}
or -len={VALUE}
: Limit the lenght of the stack shown on screen (-l=5
will show 5 first number of the stack)-t={VALUE}
or -time={VALUE}
: Little timer between every command. useful for debugging purposes-f
or -full
: is equal to -s -c -p
at the same time