/
ne-ilyxa
/
C2_s21_stringplus
Обзор
Документация
Войти
/
ne-ilyxa
/
C2_s21_stringplus
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/tests/s21_string.test.c
26 строк
834 B
git1worker
Updated %g %e specf for sprintf
20 янв 2024, 19:34
20 янв 2024, 19:34
de7841e
Код
Авторство
О чём код?
#include "../s21_string.test.h" #include <string.h> int main(void) { int failed = 0; Suite *s21_string_test[] = { test_memchr(), test_memcmp(), test_memcpy(), test_memset(), test_strchr(), test_strncat(), test_strncmp(), test_strncpy(), test_to_lower(), test_to_upper(), test_strlen(), test_strcspn(), test_strpbrk(), test_strstr(), test_strrchr(), test_strtok(), test_strerror(), test_trim(), test_insert(), NULL}; for (int i = 0; s21_string_test[i] != NULL; i++) { // (&& failed == 0) SRunner *sr = srunner_create(s21_string_test[i]); srunner_set_fork_status(sr, CK_NOFORK); srunner_run_all(sr, CK_NORMAL); failed += srunner_ntests_failed(sr); srunner_free(sr); } printf("========= FAILED: %d =========\n", failed); return failed == 0 ? 0 : 1; }