55
66
77int
8- test__append_horizontal_line ()
8+ test__append_horizontal_line (void )
99{
1010 /** Arrange */
1111 char result [4096 ] = { 0 };
@@ -27,7 +27,7 @@ test__append_horizontal_line()
2727
2828
2929int
30- test__compact_size_with_suffix__is_bytes ()
30+ test__compact_size_with_suffix__is_bytes (void )
3131{
3232 /** Arrange */
3333 int size = 1023 ;
@@ -48,7 +48,7 @@ test__compact_size_with_suffix__is_bytes()
4848
4949
5050int
51- test__compact_size_with_suffix__is_gigabytes ()
51+ test__compact_size_with_suffix__is_gigabytes (void )
5252{
5353 /** Arrange */
5454 unsigned long size = 1073741824 ;
@@ -69,7 +69,7 @@ test__compact_size_with_suffix__is_gigabytes()
6969
7070
7171int
72- test__compact_size_with_suffix__is_kilobytes ()
72+ test__compact_size_with_suffix__is_kilobytes (void )
7373{
7474 /** Arrange */
7575 int size = 1048575 ;
@@ -90,7 +90,7 @@ test__compact_size_with_suffix__is_kilobytes()
9090
9191
9292int
93- test__compact_size_with_suffix__is_megabytes ()
93+ test__compact_size_with_suffix__is_megabytes (void )
9494{
9595 /** Arrange */
9696 int size = 1048576 ;
@@ -111,7 +111,7 @@ test__compact_size_with_suffix__is_megabytes()
111111
112112
113113int
114- test__compact_size_with_suffix__is_not_gigabytes ()
114+ test__compact_size_with_suffix__is_not_gigabytes (void )
115115{
116116 /** Arrange */
117117 unsigned long size = 1073741823 ;
@@ -132,7 +132,7 @@ test__compact_size_with_suffix__is_not_gigabytes()
132132
133133
134134int
135- test__compact_size_with_suffix__is_not_megabytes ()
135+ test__compact_size_with_suffix__is_not_megabytes (void )
136136{
137137 /** Arrange */
138138 int size = 1048575 ;
@@ -153,10 +153,10 @@ test__compact_size_with_suffix__is_not_megabytes()
153153
154154
155155int
156- test__compact_size_with_suffix__is_terabytes ()
156+ test__compact_size_with_suffix__is_terabytes (void )
157157{
158158 /** Arrange */
159- double size = 1099511627776 ;
159+ double size = 1099511627776.0 ;
160160 char result [16 ] = { 0 };
161161 const char * expected = "1 TB" ;
162162
@@ -174,10 +174,10 @@ test__compact_size_with_suffix__is_terabytes()
174174
175175
176176int
177- test__compact_size_with_suffix__works_with_ntfs_volume_limit ()
177+ test__compact_size_with_suffix__works_with_ntfs_volume_limit (void )
178178{
179179 /** Arrange */
180- double size = 281474976710656 ;
180+ double size = 281474976710656.0 ;
181181 char result [16 ] = { 0 };
182182 const char * expected = "256 TB" ;
183183
@@ -195,32 +195,32 @@ test__compact_size_with_suffix__works_with_ntfs_volume_limit()
195195
196196
197197int
198- test__create_footer ()
198+ test__create_footer (void )
199199{
200- // /** Arrange */
201- // char footer_string[1024] = { 0 };
200+ /** Arrange */
201+ /*/ / char footer_string[1024] = { 0 };
202202// int console_width = 80;
203203// char * root_path = "x:\\";
204204// char search_drive = 'C';
205- //
206- // /** Act */
207- // create_footer(footer_string, console_width, root_path, search_drive);
205+ //*/
206+ /** Act */
207+ /*// create_footer(footer_string, console_width, root_path, search_drive);*/
208208
209209 /** Assert */
210- // if (strcmp(footer_string,
210+ /*/ / if (strcmp(footer_string,
211211// " 0 files, totaling , consuming 0 bytes of disk space.\n"
212212// " 0 bytes available on Drive C: Volume label: C_DRIVE\n"
213213// ) != 0) {
214214// puts("STRING SHOULD MATCH");
215215// return 1;
216216// }
217- //
217+ //*/
218218 return 0 ;
219219}
220220
221221
222222int
223- test__create_horizontal_line__is_console_width ()
223+ test__create_horizontal_line__is_console_width (void )
224224{
225225 /** Arrange */
226226 CONSOLE_SCREEN_BUFFER_INFO csbi = {
@@ -249,7 +249,7 @@ test__create_horizontal_line__is_console_width()
249249
250250
251251int
252- test__get_console_info__sets_attributes ()
252+ test__get_console_info__sets_attributes (void )
253253{
254254 /** Arrange */
255255 struct console_info console = { -1 , -1 , -1 };
@@ -272,7 +272,7 @@ test__get_console_info__sets_attributes()
272272
273273
274274int
275- test__get_console_width__greater_than_zero ()
275+ test__get_console_width__greater_than_zero (void )
276276{
277277 /** Arrange */
278278 int width = -1 ;
@@ -291,11 +291,11 @@ test__get_console_width__greater_than_zero()
291291
292292
293293int
294- main ()
294+ main (void )
295295{
296296 int failed_count = 0 ;
297297
298- //failed_count += test__append_horizontal_line();
298+ /* //failed_count += test__append_horizontal_line();*/
299299 failed_count += test__compact_size_with_suffix__is_bytes ();
300300 failed_count += test__compact_size_with_suffix__is_gigabytes ();
301301 failed_count += test__compact_size_with_suffix__is_kilobytes ();
@@ -304,7 +304,7 @@ main()
304304 failed_count += test__compact_size_with_suffix__is_not_megabytes ();
305305 failed_count += test__compact_size_with_suffix__is_terabytes ();
306306 failed_count += test__compact_size_with_suffix__works_with_ntfs_volume_limit ();
307- //failed_count += test__create_footer();
307+ /* //failed_count += test__create_footer();*/
308308 failed_count += test__create_horizontal_line__is_console_width ();
309309 failed_count += test__get_console_info__sets_attributes ();
310310 failed_count += test__get_console_width__greater_than_zero ();
0 commit comments