X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/46098de47811c686844e5cb8b1d8f1b59586e6b8..c048ca1252065d6705763043eb2ff750d95e52e9:/practicas/pipi/src/test_nameserver_resolvnext.cpp diff --git a/practicas/pipi/src/test_nameserver_resolvnext.cpp b/practicas/pipi/src/test_nameserver_resolvnext.cpp index d510483..11fc133 100644 --- a/practicas/pipi/src/test_nameserver_resolvnext.cpp +++ b/practicas/pipi/src/test_nameserver_resolvnext.cpp @@ -11,12 +11,13 @@ int main(int argc, char* argv[]) std::ifstream ifs("test_nameserver_zones.txt"); NameServer ns(ifs); std::cout << ns << "\n"; - ns.resolv_next(N("tito.mi.super.nombre")); - ns.resolv_next(N("juan.mi.super.nombre")); - ns.resolv_next(N("pepe.otro.mi.super.nombre")); - ns.resolv_next(N("pepe.mas.mi.super.nombre")); - ns.resolv_next(N("super.nombre")); - ns.resolv_next(N("nada.que.ver")); + std::cout << ns.resolv_next(N("tito.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_next(N("juan.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_next(N("pepe.otro.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_next(N("pepe.mas.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_next(N("super.nombre")) << "\n"; + std::cout << ns.resolv_next(N("nada.que.ver")) << "\n"; + std::cout << ns.resolv_next(N("tito.mas.super.nombres")) << "\n"; return 0; }