Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.

RabeloGuedes/push_swap_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Português 🇧🇷🇵🇹

Saiba mais

push_swap

Projeto da 42 - Rank 2 - push_swap

🏆 Meu desempenho

📌 Habilidades

Habilidades desenvolvidas:

  • Utilização de listas enacadeadas
  • Noções de endereço de memória
  • Noções de alocação e dealocação de memória
  • Desenvolvimento de algoritmo de ordenação
  • Busca de errors de código e bugs
  • Desenvolvimento de testes unitários

‍💻 Softwares necessários

  • C compiler (clang)
  • make
	Para realizar os testes unitários é necessário ter instalado coreutils.
	OBS: Caso não tenha instalado, pode instalar com o comando abaixo:
		- $> sudo apt-get install coreutils (linux)
		[caso não tenha o sudo instalado, basta executar o comando abaixo]
			- $> su -c "apt-get install coreutils" (linux)
		[caso não tenha o apt-get instalado, basta executar o comando abaixo]
			- $> su -c "apt install apt-utils" (linux)
		- $> brew install coreutils (mac)
		[caso não tenha o brew instalado, basta executar o comando abaixo]
			- $> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
	PS: Este projeto não foi testado no sistema operacional Windows.

⬇️ Compilando arquivos

	make #Compila todos as funções para a biblioteca 'lib_push_swap.a' e compila o programa no executável push_swap.
	make all #Faz exatamente a mesma coisa que apenas 'make'.
	make debug #Faz exatamente a mesma coisa que apenas 'make' com a diferença que o executável é compilado com as flags -g3 e -fsanitize=address.
	make bonus #Compila todos as funções para a biblioteca 'lib_push_swap.a' e compila o programa no executável checker, que é o bonus deste projeto.
	make tests #Faz make all e make bonus, além de executar os testes unitários.
	#PS: Todos os comandos listados acima criam a biblioteca, além de compilar as funções. 

⚡ Testando o projeto

	Basta executar no terminal o comando 'make tests' no raiz do projeto e aguardar o resultado ser mostrado no terminal.
	Caso queira testar manualmente o projeto, basta executar o comando 'make' na raiz do projeto e em seguida executar o comando './push_swap [lista de números separados por espaço]'.

🗑️ Removendo arquivos binários e bibliotecas

	Para remover todos os arquivos compilados, basta executar o comando 'make fclean' no raiz do projeto.

Time de desenvolvimento

Projeto individual:

Alê Rabelo

💬 Contatos

English 🇺🇸🇬🇧

More

push_swap

Project from 42 - Rank 2 - push_swap

🏆 My accomplishment

📌 Skills

Practiced skills:

  • Usage of pointers
  • Understanding of memory address
  • Understanding of memory allocation and deallocation
  • Development of sorting algorithm
  • Search for code errors and bugs
  • Development of unit tests

‍💻 Required Softwares

  • C compiler (clang)
  • make
	To perform unit tests it is necessary to have coreutils installed.
	OBS: If you don't have it installed, you can install it with the command below:
		- $> sudo apt-get install coreutils (linux)
		[in case you don't have sudo installed, just run the command below]
			- $> su -c "apt-get install coreutils" (linux)
		[in case you don't have apt-get installed, just run the command below]
			- $> su -c "apt install apt-utils" (linux)
		- $> brew install coreutils (mac)
		[in case you don't have brew installed, just run the command below]
			- $> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
	PS: This project was not tested on the Windows operating system.

⬇️ Compiling files

	make #Compiles all functions to the library 'lib_push_swap.a' and compiles the program in the executable push_swap.
	make all #Does exactly the same thing as just 'make'.
	make debug #Does exactly the same thing as just 'make' with the difference that the executable is compiled with the flags -g3 and -fsanitize=address.
	make bonus #Compiles all functions to the library 'lib_push_swap.a' and compiles the program in the executable checker, which is the bonus of this project.
	make tests #Does make all and make bonus, in addition to running the unit tests.
	#PS: All the commands listed above create the library, in addition to compiling the functions.

⚡ Testing the project

	Just run the command 'make tests' in the terminal at the root of the project and wait for the result to be shown in the terminal.
	If you want to manually test the project, just run the command 'make' at the root of the project and then run the command './push_swap [list of numbers separated by space]'.

Squad

Single person project:

Alê Rabelo

💬 Contact

Deutsch 🇩🇪

Mehr

push_swap

Projekt von 42 - Rank 2 - push_swap

🏆 Meine Leistung

📌 Fähigkeiten

Ausgeübte Fähigkeiten:

  • Verwendung von Zeigern
  • Verständnis der Speicheradresse
  • Verständnis der Speicherzuweisung und -freigabe
  • Entwicklung eines Sortieralgorithmus
  • Suche nach Codefehlern und Fehlern
  • Entwicklung von Unittests

‍💻 Benötigte Software

  • C compiler (clang)
  • make

⬇️ Dateien zusammenstellen

	make #Kompiliert alle Funktionen in die Bibliothek 'lib_push_swap.a' und kompiliert das Programm in das ausführbare push_swap.
	make all #Macht genau das gleiche wie nur 'make'.
	make debug #Macht genau das gleiche wie nur 'make' mit dem Unterschied, dass das ausführbare Programm mit den Flags -g3 und -fsanitize=address kompiliert wird.
	make bonus #Kompiliert alle Funktionen in die Bibliothek 'lib_push_swap.a' und kompiliert das Programm in das ausführbare checker, das der Bonus dieses Projekts ist.
	make tests #Macht make all und make bonus, zusätzlich zum Ausführen der Unittests.
	#PS: Alle oben aufgeführten Befehle erstellen die Bibliothek und kompilieren die Funktionen.

⚡ Projekt Testing

	Führen Sie einfach den Befehl 'make tests' im Terminal im Stammverzeichnis des Projekts aus und warten Sie, bis das Ergebnis im Terminal angezeigt wird.
	Wenn Sie das Projekt manuell testen möchten, führen Sie einfach den Befehl 'make' im Stammverzeichnis des Projekts aus und führen Sie dann den Befehl './push_swap [Liste der durch Leerzeichen getrennten Zahlen]' aus.

Entwickungsteam

Einzelperson Projekt:

Alê Rabelo

💬 Kontakt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors