Skip to content

This tester is designed to test the push_swap project from the 42 / 1337 school. It will assess your push_swap program with various inputs and provide the result of each test along with the average of all the tests.

Notifications You must be signed in to change notification settings

bablilayoub/push_swap_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push_swap Tester

Table of contents

Description

This tester is designed to test the push_swap project from the 42 / 1337 school. It will assess your push_swap program with various inputs and provide the result of each test along with the average of all the tests.

Usage

To use this tester, clone it in the same directory as your push_swap program. Then, run the tester with the following command:

git clone https://github.com/bablilayoub/push_swap_tester.git && cd push_swap_tester && ./tester.sh help

Testing example

./tester.sh [number of random numbers] [number of tests]
./tester.sh 100 100

This will execute 100 tests, each with 100 random numbers.

Output

The tester's output will resemble the following:

Test case : 1 | STATUS:  KO  | Number of instructions: 531

Or

Test case : 1 | STATUS:  OK  | Number of instructions: 656

Additionally, the tester will provide the average of all the tests at the end of the execution.

I have something else for you, you can also test parsing with this tester. Just use the following command:

./tester.sh parsing

This will test your program with various inputs, such as duplicate numbers, non-numeric arguments, empty arguments, etc.

Oh wait, there is more

I understand that your session is getting full due to error files, so I added a clean option to the tester. Just use the following command:

./tester.sh clean

Contact

If you have any questions about this tester, you can contact me on Discord: .thexd

License

MIT

And that's it! I hope you enjoy this tester, and if you have any suggestions, please let me know.

About

This tester is designed to test the push_swap project from the 42 / 1337 school. It will assess your push_swap program with various inputs and provide the result of each test along with the average of all the tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages