2021-10-28 09:01:14 +02:00
|
|
|
/*
|
|
|
|
* boxes - Command line filter to draw/remove ASCII boxes around text
|
2023-03-26 21:32:08 +02:00
|
|
|
* Copyright (c) 1999-2023 Thomas Jensen and the boxes contributors
|
2021-10-28 09:01:14 +02:00
|
|
|
*
|
2022-09-18 14:56:30 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
|
|
|
|
* License, version 3, as published by the Free Software Foundation.
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
* details.
|
|
|
|
* You should have received a copy of the GNU General Public License along with this program.
|
|
|
|
* If not, see <https://www.gnu.org/licenses/>.
|
2021-10-28 09:01:14 +02:00
|
|
|
*
|
2022-09-18 14:56:30 +02:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2021-10-28 09:01:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2023-05-14 22:17:10 +02:00
|
|
|
* Unit tests of the 'tools' module.
|
2021-10-28 09:01:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TOOLS_TEST_H
|
|
|
|
#define TOOLS_TEST_H
|
|
|
|
|
|
|
|
|
|
|
|
void test_strisyes_true(void **state);
|
|
|
|
void test_strisyes_false(void **state);
|
|
|
|
|
|
|
|
void test_strisno_true(void **state);
|
|
|
|
void test_strisno_false(void **state);
|
|
|
|
|
2022-09-17 16:02:42 +02:00
|
|
|
void test_my_strrspn_edge(void **state);
|
|
|
|
void test_my_strrspn(void **state);
|
|
|
|
|
|
|
|
void test_is_csi_reset(void **state);
|
|
|
|
|
2023-04-19 21:06:00 +02:00
|
|
|
void test_is_ascii_id_valid(void **state);
|
|
|
|
void test_is_ascii_id_invalid(void **state);
|
|
|
|
void test_is_ascii_id_strict_valid(void **state);
|
|
|
|
void test_is_ascii_id_strict_invalid(void **state);
|
|
|
|
|
2023-05-14 22:17:10 +02:00
|
|
|
void test_repeat(void **state);
|
|
|
|
|
2021-10-28 09:01:14 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2023-05-14 22:17:10 +02:00
|
|
|
/* vim: set cindent sw=4: */
|