Please send questions to st10@humboldt.edu .
//------------------------------------------------------------
// File: test_writeBackward.cpp
// Name: Sharon M. Tuttle
// last modified: 2-2-04
// 
// Purpose: tester for function writeBackward
//------------------------------------------------------------

#include <iostream>
#include <string>
#include "writeBackward.h"
using namespace std;

int main()
{
    // BE CAREFUL --- a string literal like "hi" is not
    //    actually of type string --- need string variables
    //    here;

    // this will ensure that these are truly of
    //  of type string
    string str1, str2, str3;

    str1 = "hello there";
    str2 = "";
    str3 = "f";

    // run tests of writeBackward
    cout << endl;
    cout << "should see <ereht olleh>: <";
    writeBackward(str1, 11);
    cout << ">" << endl; 

    cout << endl;
    cout << "should see <>: <";
    writeBackward(str2, 0);
    cout << ">" << endl;

    cout << endl;
    cout << "should see <f>: <";
    writeBackward(str3, 1);
    cout << ">" << endl;
    
    return EXIT_SUCCESS;
}