The first project of the common-core of the school 42, where the main goal is to develop tools to the rest of the cursus
Find a file
Raphaël 3aa050dff6
🧪 Unit Test Update – Character Functions
🎯 Gameplay Fixes (a.k.a. Function Corrections)
	•	🔧 ft_isascii has been rebalanced: now consistently returns 1 for values within the ASCII range (0–127), instead of leaking the raw character value.
	•	🔧 ft_isprint has been patched: returns 1 only for printable characters (32–126), aligning with the standard library.

➡️ These fixes bring our character classification system fully in line with the C standard behavior. No more unfair RNG in return values!

⸻

🆕 New Content (a.k.a. Fresh Test Files)
	•	📜 test_isascii.c – Exhaustively tests ft_isascii vs isascii across values 0–128.
	•	📜 test_isprint.c – Pits ft_isprint against isprint across the same range.
	•	📜 test_tolower.c – Validates ft_tolower against tolower.
	•	📜 test_toupper.c – Validates ft_toupper against toupper.

⸻

 Impact
	•	Consistent, predictable behavior for all classification and transformation functions.
	•	A stronger, more reliable unit test suite to guard against future regressions.
	•	Confidence boost for upcoming boss fights (👀 the rest of libft).
2025-09-05 10:54:21 +02:00
.github/workflows style(action): renaming the main.yml to norminette.yml 2025-09-04 15:18:50 +02:00
char fix(char): fixing the isascii / isprint 2025-09-05 10:47:02 +02:00
convert refactor(convert): normed the convert functions 2025-09-04 11:49:07 +02:00
includes feat(include/color): init the color header for print propose 2025-09-04 11:54:38 +02:00
list refactor: only the usefull header 2025-09-01 18:45:33 +02:00
memory refactor: make ft_checks function static 2025-09-04 12:01:38 +02:00
print refactor: make check_args function static 2025-09-04 12:01:21 +02:00
str feat(str/strncpy): adding the function strncpy 2025-09-01 18:48:57 +02:00
test/char feat(test/char): adding the unitary test for ft_tolower 2025-09-05 10:49:19 +02:00
.gitignore chore(ignore): adding test binary to ignore 2025-09-04 18:51:03 +02:00
Makefile build(make): adding unitary test to the lib 2025-09-04 18:52:59 +02:00
README.md Removing banner 2024-05-12 19:11:27 +02:00

This project is your very first project as a student at 42. You will need to recode a few functions of the C standard library as well as some other utility functions that you will use during your whole cursus.

Keywords Skills
Unix Logic Algorithms & AI
Imperative programming
Rigor