/
githubmirror
/
libreport
Обзор
Документация
Войти
/
githubmirror
/
libreport
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.17.13
tests/strbuf.at
26 строк
494 B
Michal Fabik
Replace strbuf with GString
17 июн 2020, 13:45
17 июн 2020, 13:45
4608aa2
Код
Авторство
О чём код?
# -*- Autotest -*- AT_BANNER([strbuf]) ## --------------------- ## ## libreport_strremovech ## ## --------------------- ## AT_TESTFUN([libreport_strremovech], [[ #include "internal_libreport.h" #include <assert.h> int main(void) { char test[] = "Hello , world!"; if (strcmp(libreport_strremovech(test, ' '), "Hello,world!") != 0) { fprintf(stderr, "Expected: 'Hello,world!'\nResult : '%s'", test); assert(!"Failed to remove space"); } return 0; } ]])