@@ -8,18 +8,48 @@ static void test_precision_o(t_test *test)
8
8
assert_printf ("%.4o" , 42 );
9
9
}
10
10
11
+ static void test_precision_o_len_higher_prec (t_test * test )
12
+ {
13
+ // test->debug = 1;
14
+ assert_printf ("%.4o" , 424242 );
15
+ }
16
+
11
17
static void test_precision_o_higher_min_width (t_test * test )
12
18
{
13
19
// test->debug = 1;
14
20
assert_printf ("%15.4o" , 42 );
15
21
}
16
22
23
+ static void test_precision_o_higher_min_width_len_between_width_prec (t_test * test )
24
+ {
25
+ // test->debug = 1;
26
+ assert_printf ("%15.4o" , 424242 );
27
+ }
28
+
29
+ static void test_precision_o_higher_min_width_len_higher_width (t_test * test )
30
+ {
31
+ // test->debug = 1;
32
+ assert_printf ("%8.4o" , 424242424 );
33
+ }
34
+
17
35
static void test_precision_o_higher_precision (t_test * test )
18
36
{
19
37
// test->debug = 1;
20
38
assert_printf ("%4.15o" , 42 );
21
39
}
22
40
41
+ static void test_precision_o_higher_precision_len_between_width_prec (t_test * test )
42
+ {
43
+ // test->debug = 1;
44
+ assert_printf ("%4.15o" , 424242 );
45
+ }
46
+
47
+ static void test_precision_o_higher_precision_len_higher_prec (t_test * test )
48
+ {
49
+ // test->debug = 1;
50
+ assert_printf ("%4.8o" , 424242424 );
51
+ }
52
+
23
53
static void test_precision_o_zero_value (t_test * test )
24
54
{
25
55
// test->debug = 1;
@@ -56,18 +86,48 @@ static void test_precision_x(t_test *test)
56
86
assert_printf ("%.4x" , 42 );
57
87
}
58
88
89
+ static void test_precision_x_len_higher_prec (t_test * test )
90
+ {
91
+ // test->debug = 1;
92
+ assert_printf ("%.4x" , 424242 );
93
+ }
94
+
59
95
static void test_precision_x_higher_min_width (t_test * test )
60
96
{
61
97
// test->debug = 1;
62
98
assert_printf ("%15.4x" , 42 );
63
99
}
64
100
101
+ static void test_precision_x_higher_min_width_len_between_width_prec (t_test * test )
102
+ {
103
+ // test->debug = 1;
104
+ assert_printf ("%15.4x" , 424242 );
105
+ }
106
+
107
+ static void test_precision_x_higher_min_width_len_higher_width (t_test * test )
108
+ {
109
+ // test->debug = 1;
110
+ assert_printf ("%8.4x" , 424242424 );
111
+ }
112
+
65
113
static void test_precision_x_higher_precision (t_test * test )
66
114
{
67
115
// test->debug = 1;
68
116
assert_printf ("%4.15x" , 42 );
69
117
}
70
118
119
+ static void test_precision_x_higher_precision_len_between_width_prec (t_test * test )
120
+ {
121
+ // test->debug = 1;
122
+ assert_printf ("%4.15x" , 42424242 );
123
+ }
124
+
125
+ static void test_precision_x_higher_precision_len_higher_prec (t_test * test )
126
+ {
127
+ // test->debug = 1;
128
+ assert_printf ("%4.8x" , 424242424 );
129
+ }
130
+
71
131
static void test_precision_x_zero_value (t_test * test )
72
132
{
73
133
// test->debug = 1;
@@ -80,18 +140,48 @@ static void test_precision_x_up(t_test *test)
80
140
assert_printf ("%.4X" , 42 );
81
141
}
82
142
143
+ static void test_precision_x_up_len_higher_prec (t_test * test )
144
+ {
145
+ // test->debug = 1;
146
+ assert_printf ("%.4X" , 424242 );
147
+ }
148
+
83
149
static void test_precision_x_up_higher_min_width (t_test * test )
84
150
{
85
151
// test->debug = 1;
86
152
assert_printf ("%15.4X" , 42 );
87
153
}
88
154
155
+ static void test_precision_x_up_higher_min_width_len_between_width_prec (t_test * test )
156
+ {
157
+ // test->debug = 1;
158
+ assert_printf ("%15.4X" , 424242 );
159
+ }
160
+
161
+ static void test_precision_x_up_higher_min_width_len_higher_width (t_test * test )
162
+ {
163
+ // test->debug = 1;
164
+ assert_printf ("%8.4X" , 424242424 );
165
+ }
166
+
89
167
static void test_precision_x_up_higher_precision (t_test * test )
90
168
{
91
169
// test->debug = 1;
92
170
assert_printf ("%4.15X" , 42 );
93
171
}
94
172
173
+ static void test_precision_x_up_higher_precision_len_between_width_prec (t_test * test )
174
+ {
175
+ // test->debug = 1;
176
+ assert_printf ("%4.15X" , 424242 );
177
+ }
178
+
179
+ static void test_precision_x_up_higher_precision_len_higher_prec (t_test * test )
180
+ {
181
+ // test->debug = 1;
182
+ assert_printf ("%4.8X" , 424242424 );
183
+ }
184
+
95
185
static void test_precision_x_up_zero_value (t_test * test )
96
186
{
97
187
// test->debug = 1;
@@ -102,19 +192,34 @@ static void test_precision_x_up_zero_value(t_test *test)
102
192
void suite_71_precision_for_oOxX (t_suite * suite )
103
193
{
104
194
SUITE_ADD_TEST (suite , test_precision_o );
195
+ SUITE_ADD_TEST (suite , test_precision_o_len_higher_prec );
105
196
SUITE_ADD_TEST (suite , test_precision_o_higher_min_width );
197
+ SUITE_ADD_TEST (suite , test_precision_o_higher_min_width_len_between_width_prec );
198
+ SUITE_ADD_TEST (suite , test_precision_o_higher_min_width_len_higher_width );
106
199
SUITE_ADD_TEST (suite , test_precision_o_higher_precision );
200
+ SUITE_ADD_TEST (suite , test_precision_o_higher_precision_len_between_width_prec );
201
+ SUITE_ADD_TEST (suite , test_precision_o_higher_precision_len_higher_prec );
107
202
SUITE_ADD_TEST (suite , test_precision_o_zero_value );
108
203
SUITE_ADD_TEST (suite , test_precision_o_up );
109
204
SUITE_ADD_TEST (suite , test_precision_o_up_higher_min_width );
110
205
SUITE_ADD_TEST (suite , test_precision_o_up_higher_precision );
111
206
SUITE_ADD_TEST (suite , test_precision_o_up_zero_value );
112
207
SUITE_ADD_TEST (suite , test_precision_x );
208
+ SUITE_ADD_TEST (suite , test_precision_x_len_higher_prec );
113
209
SUITE_ADD_TEST (suite , test_precision_x_higher_min_width );
210
+ SUITE_ADD_TEST (suite , test_precision_x_higher_min_width_len_between_width_prec );
211
+ SUITE_ADD_TEST (suite , test_precision_x_higher_min_width_len_higher_width );
114
212
SUITE_ADD_TEST (suite , test_precision_x_higher_precision );
213
+ SUITE_ADD_TEST (suite , test_precision_x_higher_precision_len_between_width_prec );
214
+ SUITE_ADD_TEST (suite , test_precision_x_higher_precision_len_higher_prec );
115
215
SUITE_ADD_TEST (suite , test_precision_x_zero_value );
116
216
SUITE_ADD_TEST (suite , test_precision_x_up );
217
+ SUITE_ADD_TEST (suite , test_precision_x_up_len_higher_prec );
117
218
SUITE_ADD_TEST (suite , test_precision_x_up_higher_min_width );
219
+ SUITE_ADD_TEST (suite , test_precision_x_up_higher_min_width_len_between_width_prec );
220
+ SUITE_ADD_TEST (suite , test_precision_x_up_higher_min_width_len_higher_width );
118
221
SUITE_ADD_TEST (suite , test_precision_x_up_higher_precision );
222
+ SUITE_ADD_TEST (suite , test_precision_x_up_higher_precision_len_between_width_prec );
223
+ SUITE_ADD_TEST (suite , test_precision_x_up_higher_precision_len_higher_prec );
119
224
SUITE_ADD_TEST (suite , test_precision_x_up_zero_value );
120
225
}
0 commit comments