Skip to content

satukoskinen/printf_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

printf_test

Tests for the Hive ft_printf project of recreating the C printf function.

To run the tests, first clone this repo in the root of your ft_printf project:

git clone https://github.com/satukoskinen/printf_test.git

Then modify the run.sh script configuration to have the correct include and library paths.

Finally, run the tests from the root with

./printf_test/run.sh

The script is divided in four parts:

  1. testing norminette,
  2. testing make,
  3. running basic tests for ft_printf against printf and
  4. checking for leaks with either valgrind or the system leaks command.

Norme testing is commented out by default, as well as the tests for all required make commands (make, make all, make clean, make fclean, make re). Basic tests will be run separately for strings (%s), chars (%c, %%) , signed integers (%d, %i), unsigned integers (%o, %u, %x, %X), pointers (%p), doubles (%f; %F not included in the tests yet) and long doubles (%Lf). Separate tests are run on length modifiers l, ll, h, hh for integers and l, L for doubles.

About

tests for the Hive ft_printf project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages