Skip to content

ql-eilde/moulitest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains tests of several projects done at 42. At the moment, the available tests are:

  • libft (58 functions and 25+ other generic functions)
  • get_next_line (with handling of multiples file descriptors)

Feedbacks and pull requests are welcome. You can also raise issues on github directly.

Install

$ cp config.json.template config.json
# ==> EDIT config.json and replace with your OWN VALUES <==

# WARNING: Unnecessary trailing commas are not allowed in .json files.
# e.g.      ["aaa", "bbb"]  GOOD
#           ["aaa", "bbb",] BAD

Usage Libft

$ cd libft_tests
$ ./test --help

Usage Get Next Line

$ cd get_next_line_tests
$ ./test --help

Do not use file descriptor 1 for debugging to avoid conflict with the tests. Use the file descriptor 2 instead. Example:

write(2, "abc", 3);

WARNING: If the test stops in the middle, it certainly means that the test is waiting an input from your get_next_line function but nothing is returned.

Credit

The test framework and many libft tests are based on the work done by Maxime Bacoux (mbacoux) Here is the original repository: https://github.com/Nax/libft-test

Other interesting tests have also been included for convenience: Mouli-nator and Qperez test suite.

About

Tests for 42 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.1%
  • Python 9.9%