forked from Sol128/hash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
26 lines (20 loc) · 684 Bytes
/
main.c
File metadata and controls
26 lines (20 loc) · 684 Bytes
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
#include "testing.h"
#include <stdlib.h>
#include <stdio.h>
/* ******************************************************************
* PROGRAMA PRINCIPAL
* *****************************************************************/
void pruebas_hash_catedra(void);
void pruebas_volumen_catedra(size_t);
int main(int argc, char *argv[])
{
if (argc > 1) {
// Asumimos que nos están pidiendo pruebas de volumen.
long largo = strtol(argv[1], NULL, 10);
pruebas_volumen_catedra((size_t) largo);
return failure_count() > 0;
}
printf("~~~ PRUEBAS CÁTEDRA ~~~\n");
pruebas_hash_catedra();
return failure_count() > 0;
}