ael-bekk / push_swap_tester

push swap tester for 42 push_swap project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tester for push swap To see how it works

push swap tester for 42 push_swap project

This tester shows the performance of your push_swap program

and check that your checker works correctly.

What's push_swap_tester?

Push_swap_tester is a little tester that shows you how your push_swap works. It displays the number of instructions performed by your push_swap in color, with the average here is the colors means:

  • #23FF05 means so good
  • #FFF705 means good
  • #05FBFF means it's ok
  • #D905FF means bad
  • #010CFA means realy bad
  • #f03c15 means eliminatory

Screenshot

How to run this tester?

git clone https://github.com/ael-bekk/push_swap_tester.git
cd push_swap_tester/
./tester.sh [path/push_swap] [path/checker (your checker or checker_mac)] [nb_of_tests]

for example:

the following command will perform one test with a stack of 2 & 3 & 5 & 100 & 500 integers, and check error two

./tester.sh ../push_swap ../checker

the following command will perform 5 tests with a stack of 2 & 3 & 5 & 100 & 500 integers, and check error two

./tester.sh ../push_swap ../checker 5

📝 License

This project is licensed under the MIT - see the LICENSE file for details.


About

push swap tester for 42 push_swap project

License:MIT License


Languages

Language:Shell 100.0%