#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
#include "first.h"
using namespace std;

/*--------
  signature: main: void -> int

  purpose: testing program for the function first

  examples: when run, this should output to the screen:
testing first: true's should mean passed:
---------------------------------------
...followed by each testing call, hopefully
   followed by true to show it passed

  by: funct_play
  last modified: Tue Oct 25 13:40:09 PDT 2016
--------*/

int main()
{
    cout << boolalpha;
    cout << endl;
    cout << "testing first: true's should mean passed: " << endl;
    cout << "---------------------------------------" << endl;
    cout << "(first(\"mooooo\") == 'm'): " 
         << (first("mooooo") == 'm') << endl;
    cout << "(first(\"baaaaaaaa\") == 'b'): " 
         << (first("baaaaaaaa") == 'b') << endl;
    cout << endl;

    return EXIT_SUCCESS;
}