File: bxstring_test.h

package info (click to toggle)
boxes 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,800 kB
  • sloc: ansic: 10,566; lex: 517; sh: 503; makefile: 309; yacc: 272; lisp: 78
file content (113 lines) | stat: -rw-r--r-- 3,596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * boxes - Command line filter to draw/remove ASCII boxes around text
 * Copyright (c) 1999-2024 Thomas Jensen and the boxes contributors
 *
 * 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/>.
 *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */

/*
 * Unit tests of the 'cmdline' module
 */

#ifndef BXSTRING_TEST_H
#define BXSTRING_TEST_H


void test_ascii_simple(void **state);
void test_ascii_illegalchar(void **state);
void test_ascii_null(void **state);

void test_ansi_unicode_book(void **state);
void test_ansi_unicode_space_kinds(void **state);
void test_ansi_unicode_chinese(void **state);
void test_ansi_unicode_empty(void **state);
void test_ansi_unicode_blanks(void **state);
void test_ansi_unicode_invisible_only(void **state);
void test_ansi_unicode_illegalchar(void **state);
void test_ansi_unicode_tabs(void **state);
void test_ansi_unicode_broken_escapes(void **state);
void test_ansi_unicode_null(void **state);
void test_ansi_unicode_tc183(void **state);

void test_bxs_new_empty_string(void **state);

void test_bxs_is_blank(void **state);

void test_bxs_strdup(void **state);

void test_bxs_cut_front(void **state);
void test_bxs_cut_front_zero(void **state);

void test_bxs_first_char_ptr_errors(void **state);

void test_bxs_last_char_ptr(void **state);

void test_bxs_unindent_ptr_null(void **state);

void test_bxs_trimdup_null(void **state);
void test_bxs_trimdup_invalid_startidx(void **state);
void test_bxs_trimdup_invalid_endidx(void **state);
void test_bxs_trimdup_invalid_endidx2(void **state);
void test_bxs_trimdup_normal(void **state);
void test_bxs_trimdup_vanish(void **state);
void test_bxs_trimdup_ansi(void **state);
void test_bxs_trimdup_ansi_same(void **state);

void test_bxs_substr_errors(void **state);

void test_bxs_strcat(void **state);
void test_bxs_strcat_empty(void **state);
void test_bxs_strcat_empty2(void **state);
void test_bxs_strcat_empty3(void **state);

void test_bxs_strchr(void **state);
void test_bxs_strchr_empty(void **state);
void test_bxs_strchr_cursor(void **state);

void test_bxs_trim(void **state);
void test_bxs_trim_blanks(void **state);
void test_bxs_trim_none(void **state);

void test_bxs_ltrim2(void **state);
void test_bxs_ltrim5(void **state);
void test_bxs_ltrim_empty(void **state);
void test_bxs_ltrim_max(void **state);

void test_bxs_rtrim(void **state);
void test_bxs_rtrim_empty(void **state);

void test_bxs_prepend_spaces_null(void **state);

void test_bxs_append_spaces(void **state);

void test_bxs_to_output(void **state);

void test_bxs_is_empty_null(void **state);

void test_bxs_is_visible_char(void **state);

void test_bxs_filter_visible(void **state);
void test_bxs_filter_visible_none(void **state);

void test_bxs_strcmp(void **state);

void test_bxs_valid_anywhere_error(void **state);
void test_bxs_valid_in_filename_error(void **state);

void test_bxs_free_null(void **state);

void test_bxs_concat(void **state);
void test_bxs_concat_nullarg(void **state);


#endif

/* vim: set cindent sw=4: */