Skip to content

A script that destroys the school 42 project ft_printf

Notifications You must be signed in to change notification settings

t0mm4rx/ftprintfdestructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftprintfdestructor

This project is a script that generate thousands of tests for the school 42 project ft_printf.

It doesn't test %p flag.

By tmarx

Usage

git clone https://github.com/t0mm4rx/ftprintfdestructor
cd ftprintfdestructor
sh run.sh <path-of-ftprintf>

If you want to increase the number of tests, edit run.py, at the top of the file there are two constants, M and N. N is the number of tests in each main generated. M is the number of main generated.

How it works

This script generate hundreds of random test, then create two mains. One calling these tests with printf and the other with ft_printf. Then, it compares line by line and print the tests that failed.

The value between -- X -- is the return value of the function.

About

A script that destroys the school 42 project ft_printf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published