------------------------------------------------------------------------------
MC logo
Asst 5 Test Driver
[^] CSc 220 Programming Assignments
------------------------------------------------------------------------------
udrive2.cpp A5 Driver Output>>
#include <iostream>
#include "url2.h"

// Simple test driver for the URL class.

main()
{
        // Initialize two of them, and print the resulting URLs
        URL u1("www.mc.edu");
        URL u2("www.eff.org", "/cases//lenz-v-universal/");

        cout << u1.as_string() << endl;
        cout << u2.as_string() << endl;

        // Initialize the third one, and perform surgery.
        URL u3("www.dingbat.gov", "/goober listings/crud/../alpha^beta");
        cout << "\n" << u3.as_string() << endl;
        u3.mkftp();
        u3.move("nimrod///island/");
        u3.port(77);
        u3.creds("fred","ft#/min");
        cout << u3.as_string() << endl;
}
A5 Driver Output>>