
Asst 5 Test Driver
#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;
}