aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.libftignore1
-rw-r--r--.travis.yml4
-rw-r--r--Doxyfile2503
-rw-r--r--LICENSE21
-rw-r--r--Makefile4
-rw-r--r--README.md37
-rwxr-xr-xscript/create_test.sh22
-rwxr-xr-xscript/find_src.sh20
-rwxr-xr-xscript/generate_rendu.sh26
-rw-r--r--script/generate_rendu_makefile.sh5
-rw-r--r--script/template.makefile38
-rw-r--r--script/test.sh14
-rw-r--r--script/test.template.c26
-rwxr-xr-xscript/test_prettier.sh6
-rw-r--r--subject.pdfbin1657956 -> 0 bytes
-rw-r--r--test/Makefile79
-rw-r--r--test/include/helper/helper_segfault.h20
-rw-r--r--test/include/libft_test.h28
-rw-r--r--test/src/algo/test_ft_bsearch.c55
-rw-r--r--test/src/algo/test_ft_compar_int.c20
-rw-r--r--test/src/algo/test_ft_heapsort.c27
-rw-r--r--test/src/algo/test_ft_is_set.c23
-rw-r--r--test/src/algo/test_ft_lfind.c38
-rw-r--r--test/src/algo/test_ft_lsearch.c52
-rw-r--r--test/src/algo/test_ft_mergesort.c26
-rw-r--r--test/src/algo/test_ft_qsort.c50
-rw-r--r--test/src/algo/test_ft_reverse.c19
-rw-r--r--test/src/ctype/test_ft_isalnum.c15
-rw-r--r--test/src/ctype/test_ft_isalpha.c15
-rw-r--r--test/src/ctype/test_ft_isascii.c15
-rw-r--r--test/src/ctype/test_ft_isblank.c15
-rw-r--r--test/src/ctype/test_ft_isdigit.c15
-rw-r--r--test/src/ctype/test_ft_isprint.c15
-rw-r--r--test/src/ctype/test_ft_isspace.c15
-rw-r--r--test/src/ctype/test_ft_todigit.c20
-rw-r--r--test/src/ctype/test_ft_tolower.c15
-rw-r--r--test/src/ctype/test_ft_toupper.c15
-rw-r--r--test/src/dstr/test_ft_dstrdestroy.c26
-rw-r--r--test/src/dstr/test_ft_dstrerase.c69
-rw-r--r--test/src/dstr/test_ft_dstrgrow.c52
-rw-r--r--test/src/dstr/test_ft_dstrinsert.c59
-rw-r--r--test/src/dstr/test_ft_dstrnew.c60
-rw-r--r--test/src/dstr/test_ft_dstrsubstitute.c64
-rw-r--r--test/src/dstr/test_ft_dstrunwrap.c42
-rw-r--r--test/src/ht/test_ft_htdelone.c62
-rw-r--r--test/src/ht/test_ft_htdestroy.c32
-rw-r--r--test/src/ht/test_ft_htget.c106
-rw-r--r--test/src/ht/test_ft_hthash.c0
-rw-r--r--test/src/ht/test_ft_htnew.c46
-rw-r--r--test/src/ht/test_ft_htset.c94
-rw-r--r--test/src/ht/test_ftht_entry_new.c43
-rw-r--r--test/src/lst/test_ft_lstbsearch.c37
-rw-r--r--test/src/lst/test_ft_lstdelone.c26
-rw-r--r--test/src/lst/test_ft_lstdestroy.c14
-rw-r--r--test/src/lst/test_ft_lstiter.c52
-rw-r--r--test/src/lst/test_ft_lstlast.c29
-rw-r--r--test/src/lst/test_ft_lstlfind.c55
-rw-r--r--test/src/lst/test_ft_lstlsearch.c55
-rw-r--r--test/src/lst/test_ft_lstmap.c82
-rw-r--r--test/src/lst/test_ft_lstnew.c25
-rw-r--r--test/src/lst/test_ft_lstpop_front.c31
-rw-r--r--test/src/lst/test_ft_lstpush_back.c41
-rw-r--r--test/src/lst/test_ft_lstpush_front.c41
-rw-r--r--test/src/lst/test_ft_lstremove_if.c70
-rw-r--r--test/src/lst/test_ft_lstreverse.c45
-rw-r--r--test/src/lst/test_ft_lstreverse_ret.c45
-rw-r--r--test/src/lst/test_ft_lstsize.c37
-rw-r--r--test/src/lst/test_ft_lstsort.c38
-rw-r--r--test/src/lst/test_ft_lstsorted_merge.c40
-rw-r--r--test/src/main.c105
-rw-r--r--test/src/mem/test_ft_bzero.c30
-rw-r--r--test/src/mem/test_ft_calloc.c33
-rw-r--r--test/src/mem/test_ft_memccpy.c45
-rw-r--r--test/src/mem/test_ft_memchr.c35
-rw-r--r--test/src/mem/test_ft_memcmp.c42
-rw-r--r--test/src/mem/test_ft_memcpy.c47
-rw-r--r--test/src/mem/test_ft_memmem.c65
-rw-r--r--test/src/mem/test_ft_memmove.c39
-rw-r--r--test/src/mem/test_ft_memset.c42
-rw-r--r--test/src/mem/test_ft_memset_pattern4.c42
-rw-r--r--test/src/mem/test_ft_memswap.c41
-rw-r--r--test/src/runner/test_runner_algo.c60
-rw-r--r--test/src/runner/test_runner_ctype.c64
-rw-r--r--test/src/runner/test_runner_dstr.c48
-rw-r--r--test/src/runner/test_runner_ht.c51
-rw-r--r--test/src/runner/test_runner_lst.c103
-rw-r--r--test/src/runner/test_runner_mem.c69
-rw-r--r--test/src/runner/test_runner_str.c37
-rw-r--r--test/src/runner/test_runner_vec.c64
-rw-r--r--test/src/str/test_ft_fnmatch.c117
-rw-r--r--test/src/str/test_ft_strlen.c24
-rw-r--r--test/src/str/test_ft_strsjoin.c57
-rw-r--r--test/src/str/test_ft_strsjoinf.c87
-rw-r--r--test/src/str/test_ft_strsub.c54
-rw-r--r--test/src/str/test_ft_strsubf.c61
-rw-r--r--test/src/str/test_ft_strtol.c129
-rw-r--r--test/src/vec/test_ft_vecdestroy.c26
-rw-r--r--test/src/vec/test_ft_vecgrow.c74
-rw-r--r--test/src/vec/test_ft_vecinsert.c66
-rw-r--r--test/src/vec/test_ft_veciter.c52
-rw-r--r--test/src/vec/test_ft_vecnew.c47
-rw-r--r--test/src/vec/test_ft_vecpop.c47
-rw-r--r--test/src/vec/test_ft_vecpush.c57
-rw-r--r--test/src/vec/test_ft_vecpush_safe.c45
-rw-r--r--test/src/vec/test_ft_vecremove.c64
-rw-r--r--test/src/vec/test_ft_vecsort.c34
-rw-r--r--vendor/_unity/LICENSE.txt21
-rw-r--r--vendor/_unity/Makefile41
-rw-r--r--vendor/_unity/README.md191
-rw-r--r--vendor/_unity/include/unity.h617
-rw-r--r--vendor/_unity/include/unity_fixture.h83
-rw-r--r--vendor/_unity/include/unity_fixture_internals.h50
-rw-r--r--vendor/_unity/include/unity_internals.h1007
-rw-r--r--vendor/_unity/include/unity_memory.h60
-rw-r--r--vendor/_unity/src/unity.c2088
-rw-r--r--vendor/_unity/src/unity_fixture.c310
-rw-r--r--vendor/_unity/unity_memory.c202
117 files changed, 2 insertions, 11608 deletions
diff --git a/.libftignore b/.libftignore
deleted file mode 100644
index 68d827a..0000000
--- a/.libftignore
+++ /dev/null
@@ -1 +0,0 @@
-*ft_printf*
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 71027dd..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: c
-compiler: gcc
-
-script: make all && make -C ./test run_v
diff --git a/Doxyfile b/Doxyfile
deleted file mode 100644
index 64cc49b..0000000
--- a/Doxyfile
+++ /dev/null
@@ -1,2503 +0,0 @@
-# Doxyfile 1.8.17
-
-# This file describes the settings to be used by the documentation system
-# doxygen (www.doxygen.org) for a project.
-#
-# All text after a double hash (##) is considered a comment and is placed in
-# front of the TAG it is preceding.
-#
-# All text after a single hash (#) is considered a comment and will be ignored.
-# The format is:
-# TAG = value [value, ...]
-# For lists, items can also be appended using:
-# TAG += value [value, ...]
-# Values that contain spaces should be placed between quotes (\" \").
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-
-# This tag specifies the encoding used for all characters in the configuration
-# file that follow. The default is UTF-8 which is also the encoding used for all
-# text before the first occurrence of this tag. Doxygen uses libiconv (or the
-# iconv built into libc) for the transcoding. See
-# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
-# The default value is: UTF-8.
-
-DOXYFILE_ENCODING = UTF-8
-
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
-# double-quotes, unless you are using Doxywizard) that should identify the
-# project for which the documentation is generated. This name is used in the
-# title of most generated pages and in a few other places.
-# The default value is: My Project.
-
-PROJECT_NAME = "libft"
-
-# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
-# could be handy for archiving the generated documentation or if some version
-# control system is used.
-
-PROJECT_NUMBER =
-
-# Using the PROJECT_BRIEF tag one can provide an optional one line description
-# for a project that appears at the top of each page and should give viewer a
-# quick idea about the purpose of the project. Keep the description short.
-
-PROJECT_BRIEF =
-
-# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
-# in the documentation. The maximum height of the logo should not exceed 55
-# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
-# the logo to the output directory.
-
-PROJECT_LOGO =
-
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
-# into which the generated documentation will be written. If a relative path is
-# entered, it will be relative to the location where doxygen was started. If
-# left blank the current directory will be used.
-
-OUTPUT_DIRECTORY = doc
-
-# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
-# directories (in 2 levels) under the output directory of each output format and
-# will distribute the generated files over these directories. Enabling this
-# option can be useful when feeding doxygen a huge amount of source files, where
-# putting all generated files in the same directory would otherwise causes
-# performance problems for the file system.
-# The default value is: NO.
-
-CREATE_SUBDIRS = NO
-
-# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
-# characters to appear in the names of generated files. If set to NO, non-ASCII
-# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
-# U+3044.
-# The default value is: NO.
-
-ALLOW_UNICODE_NAMES = NO
-
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
-# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
-# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
-# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
-# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
-# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
-# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
-# Ukrainian and Vietnamese.
-# The default value is: English.
-
-OUTPUT_LANGUAGE = English
-
-# The OUTPUT_TEXT_DIRECTION tag is used to specify the direction in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all generated output in the proper direction.
-# Possible values are: None, LTR, RTL and Context.
-# The default value is: None.
-
-OUTPUT_TEXT_DIRECTION = None
-
-# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
-# descriptions after the members that are listed in the file and class
-# documentation (similar to Javadoc). Set to NO to disable this.
-# The default value is: YES.
-
-BRIEF_MEMBER_DESC = YES
-
-# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
-# description of a member or function before the detailed description
-#
-# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
-# brief descriptions will be completely suppressed.
-# The default value is: YES.
-
-REPEAT_BRIEF = YES
-
-# This tag implements a quasi-intelligent brief description abbreviator that is
-# used to form the text in various listings. Each string in this list, if found
-# as the leading text of the brief description, will be stripped from the text
-# and the result, after processing the whole list, is used as the annotated
-# text. Otherwise, the brief description is used as-is. If left blank, the
-# following values are used ($name is automatically replaced with the name of
-# the entity):The $name class, The $name widget, The $name file, is, provides,
-# specifies, contains, represents, a, an and the.
-
-ABBREVIATE_BRIEF =