File tree Expand file tree Collapse file tree 4 files changed +40
-3
lines changed Expand file tree Collapse file tree 4 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ test: abb_aux
10
10
11
11
abb_aux : abb.o abb_aux.o
12
12
13
- # Estructuras adicionales.
14
- abb_aux : pila.o
13
+ # Dependencias adicionales.
14
+ -include deps.mk
15
15
16
16
clean :
17
17
rm -f abb_aux * .o
Original file line number Diff line number Diff line change
1
+ Pruebas básicas ABB
2
+ ===================
3
+
4
+ Estos archivos componen unas pruebas básicas para el ABB.
5
+
6
+ Características:
7
+
8
+ - verifican inserciones, borrados y reemplazos para todas las
9
+ formas de árbol de 7 nodos.
10
+
11
+ - cuando ocurre un error, se imprime exactamente la secuencia de
12
+ inserción y borrado que condujo al error.
13
+
14
+ (Nota: como es un árbol de búsqueda, el orden de inserción
15
+ representa un único ABB sin ambigüedad posible.)
16
+
17
+ Si no hay errores, se emite simplemente "OK" sin informar de cada
18
+ secuencia probada.
19
+
20
+ Si el código C aborta (p. ej. con segmentation fault), las pruebas
21
+ "sobreviven" e imprimen la secuencia igual. Esto se consigue
22
+ implementando las pruebas _fuera_ del programa que llama a las
23
+ primitivas del ABB.
24
+
25
+ Para ejecutar las pruebas, basta con añadir los archivos ‘abb.h’ y
26
+ ‘abb.c’ y ejecutar `make`. Si el ABB emplea estructuras
27
+ adicionales, se pueden indicar en el archivo ‘deps.mk’.
28
+
29
+ Enlaces
30
+ =======
31
+
32
+ Git: https://github.com/algoritmos-rw/abb_test
33
+ Zip: https://github.com/algoritmos-rw/abb_test/releases/latest
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python2
1
+ #!/usr/bin/env python
2
2
# coding: utf-8
3
3
4
4
from __future__ import print_function
8
8
import sys
9
9
import unittest
10
10
11
+ # Nombre del programita auxiliar. Debe estar sincronizado
12
+ # con el nombre que aparece en el makefile.
11
13
CMD_NAME = "./abb_aux"
12
14
13
15
Original file line number Diff line number Diff line change
1
+ # De hacer falta, añadir "pila.o" aquí.
2
+ abb_aux : pila.o
You can’t perform that action at this time.
0 commit comments