//----------------------------------------------------------------------
//  testpass.cpp
//  Test driver for the Password module.
//----------------------------------------------------------------------
#include "password.h"
#include <iostream.h>

int main()
{
    GetPassword();
    // ASSERT: User has entered an initial password

    cout << "Please verify the password:\n";
    if ( !ValidUser() ) {
        cout << "Verification failed!\n";
        return 1;
    }
    // ASSERT: User has successfully verified the password

    cout << "Busy doing important things...\n\n";
    
    if ( !ValidUser() ) {
        cout << "Invalid user!\n";
        return 1;
    }
    // ASSERT: The same user is still at the keyboard

    cout << "Busy some more...\n\n";
    
    cout << "Please specify a new password:\n";
    GetPassword();
    // ASSERT: User has established a new password

    // And so on...

    return 0;
}

