Giter VIP home page Giter VIP logo

printfmedic's Introduction

Printf Medic

A complete tester for ft_printf, a 42 version of printf.

How to use it ?

  • Clone the repository in your Printf directory, go in the tester directory, and run bash test.sh.
  • You can launch a test subset with bash test.sh d, and you can even run a specific test in a subset with bash test.sh d 4 for example.
  • Just check the tester.log file to see the differences between the true printf and your ft_printf version.
  • Pay attention: this project has to be submitted on macos. There are some differences between BSD C Lib printf and GNU Lib C printf. This tester compares output with the macos printf, so the BSD Lib. You can install a virtual machine with FreeBSD for example, if you don't have an apple system.

output

List of test subsets:

  • a (all tests)
  • m (mandatory tests)
  • b (bonus tests)
  • c
  • s
  • p
  • d
  • i
  • u
  • x
  • X
  • %
  • c_width
  • s_width
  • p_width
  • d_width
  • i_width
  • u_width
  • x_width
  • X_width
  • c_width_dash
  • s_width_dash
  • p_width_dash
  • d_width_dash
  • i_width_dash
  • u_width_dash
  • x_width_dash
  • X_width_dash
  • d_width_zero
  • i_width_zero
  • u_width_zero
  • x_width_zero
  • X_width_zero
  • s_precision
  • d_precision
  • i_precision
  • u_precision
  • x_precision
  • X_precision
  • s_width_precision
  • d_width_precision
  • i_width_precision
  • u_width_precision
  • x_width_precision
  • X_width_precision
  • s_width_precision_dash
  • d_width_precision_dash
  • i_width_precision_dash
  • u_width_precision_dash
  • x_width_precision_dash
  • X_width_precision_dash
  • d_space
  • i_space
  • d_width_space
  • i_width_space
  • d_width_dash_space
  • i_width_dash_space
  • d_precision_space
  • i_precision_space
  • d_width_precision_space
  • i_width_precision_space
  • d_width_precision_dash_space
  • i_width_precision_dash_space
  • d_plus
  • i_plus
  • d_width_plus
  • i_width_plus
  • d_width_dash_plus
  • i_width_dash_plus
  • d_precision_plus
  • i_precision_plus
  • d_width_precision_plus
  • i_width_precision_plus
  • d_width_precision_dash_plus
  • i_width_precision_dash_plus
  • x_hash
  • X_hash
  • x_width_hash
  • X_width_hash
  • x_width_dash_hash
  • X_width_dash_hash
  • x_precision_hash
  • X_precision_hash
  • x_width_precision_hash
  • X_width_precision_hash
  • x_width_precision_dash_hash
  • X_width_precision_dash_hash

printfmedic's People

Contributors

gmarcha avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.