Skip to content

abdelbenamara/PushSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 

Repository files navigation

PushSwap tester

Installation

  • Install Python

  • In your PushSwap project folder :

git clone https://github.com/abdelbenamara/PushSwap.git tests/

Usage

python3 tests/test.py 3
python3 tests/test.py 5
python3 tests/test.py 100
python3 tests/test.py 500

Options

  • By default, the n numbers are >= 1 and <= n, but you can random numbers in all possible integers by uncommenting the line

    # numbers = random.sample(range(-2147483648, 2147483647), n)
    and by commenting the line
    numbers = list(range(1, n + 1))

  • By default, for n > 5 numbers, 1000 cases are tested, but you can change that amount with this variable

    nb_cases = 1000