Hugothms / push_swap_tester

A simple tester for your push_swap project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A tester for Push_swap@42 - To see what's going on

This tester shows the performance of your push_swap program.

This tester DOES NOT 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 performs. It displays the number of instructions performed by your push_swap in color, here is what the colors mean:

# white means amazing!
@@ blue means good @@
+ green means ok
! orange means really bad
- red means eliminatory

Screenshot

How do I run this tester?

git clone https://github.com/Hugothms/push_swap_tester
bash push_swap_tester/tester.sh [path-to-push-swap-dir] [stack-size 0R range] [nb_of_tests]

for example:

the following command will perform 100 tests with a stack of 100 integers

bash push_swap_tester/tester.sh ../push_swap 100 100

the following command will perform 100 tests with a stack of 100 integers, then 100 tests with a stack of 101 integers and then 100 tests with a stack of 102 integers

bash push_swap_tester/tester.sh ../push_swap 100-102 100

Contribution

If you noticed something wrong with the code or if you'd like to see a new feature, you can submit an issue. If you'd like to contribute please submit a pull request :)

About

A simple tester for your push_swap project


Languages

Language:Shell 80.8%Language:Perl 19.2%