Coder Social home page Coder Social logo

push_swap_tester's Introduction

push_swap_tester

Script to test Push Swap project

Usage

git clone [email protected]:laisarena/push_swap_tester.git
cd push_swap_tester
cp ../path_to_push_swap_folder/push_swap .
bash tester.sh

You can change the variable 'NUM_TESTS' which determines how many times the program will be run to calculate the averages of operations, using the flag -n

You can also choose to test only a specific part of the program using the flag -f, as follows:

  • -f error : Error management
  • -f sorted: Check if sorted lists do nothing
  • -f simple: Lists of size 3 and 5
  • -f middle: Lists of size 100
  • -f advanced: Lists of size 500

Test Log

You can see the test log into the folder "log_error"

$ cd log_error

And choose the number of numbers tested into the folders "five", "hundred" and "five_hundred"
Then, you can use the command cat to see the content log

$ ls
five hundred five_hundred
$ cd five
$ ls
test_0 test_5
$ cat test_0
Random list of Five numbers
2 0 1 3 4
sa
pb
pa
sa
Qtt commands = 4
Test Checker = KO

push_swap_tester's People

Contributors

cpereira42 avatar laisarena avatar leandro-barreto avatar leomelati avatar paulahemsi avatar pcc19 avatar vitoriagalli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

push_swap_tester's Issues

[documentation] Code license

Hey! I really like your tester. I'd like to fork, maybe do some modifications that suit my needs. But I'm afraid I can't...
From GitHub's licensing help page:

Without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work...

So it would be nice if you added a LICENSE so we can know for sure what we can or cannot do with your code.

LogTest

Seria legal o seu teste ter um log mostrando para o usuário, nos testes que derma errado, quais números foram testados, quantos movimentos foram realizados e o resultado do checker.

Hi

Hi laisarena ,
I am an ecole 42 student and I am encountering this error on your tester while doing my push swap project.

push_swap(79052,0x10f400dc0) malloc: *** set a breakpoint in malloc_error_break to debug
push_swap(79055,0x10edcedc0) malloc: Incorrect checksum for freed object 0x7fdc144064c8: probably modified after being freed.

I don't know what the error means. Can you explain ?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.