From 8a5515f7e7d38bb41a711b1d8a1ac6cee750ef18 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 24 Oct 2005 04:53:08 +0000 Subject: [PATCH] Agrego info del test. --- src/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 553ea8c..58a00ec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,6 +53,8 @@ int main (int argc, char *argv[]) std::list l = km.GetList (); it = l.begin (); + int bien = 0; + int mal = 0; while (it != l.end ()) { ClaveFija c(*it); BTreeFindResult *r; @@ -60,12 +62,20 @@ int main (int argc, char *argv[]) r = tree.FindKey (c); if (r != NULL) { std::cout << "** Clave " << (*it) << " encontrada.\n"; + bien++; delete r; - } else + } else { std::cout << "** Clave " << (*it) << " NO encontrada.\n"; + mal++; + } it++; } + std::cout << "\n\n === Resultados ===\n"; + std::cout << " Hist : " << bien << "\n"; + std::cout << " Miss : " << mal << "\n"; + std::cout << " Total : " << (bien+mal) << "\n"; + return 0; } -- 2.43.0