Skip to content

Collection of scripts to test your implementation of push_swap

License

Notifications You must be signed in to change notification settings

Jkutkut/42Tester-push_swap

Repository files navigation

Push Swap Tester:

Collection of scripts to test the push_swap project from 42 Cursus.

How to:

On the root of your repository:

git clone [email protected]:Jkutkut/42Tester-push_swap.git

Run the scripts with:

Performance:

./42Tester-push_swap/tester_performance.sh

Valid and invalid input:

./42Tester-push_swap/tester_input.sh

If it has a ./checker file (like the one on the intranet), it will also run it on the valid ones.

Bonus:

./42Tester-push_swap/tester_bonus.sh

Valgrind:

./42Tester-push_swap/valgrind.sh

Or with custom input:

./42Tester-push_swap/valgrind.sh <INPUT>

Visualizer:

By the use of the visualizer made by GlaceCoding, the following script allows you to see it online:

./42Tester-push_swap/visualize.sh <TYPE>

Note 1: Type can be small, medium, big or huge.

Note 2: If the type is something else, the script will attempt to run it with those values.

Additionally, if you want to generate a random visualization with the values in a range, you can run:

./42Tester-push_swap/visualize.sh custom <MIN> <MAX>

About

Collection of scripts to test your implementation of push_swap

Resources

License

Stars

Watchers

Forks

Languages