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

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

  purpose: testing program for the function count_vowels

  examples: when run, this should output to the screen:
testing count_vowels: 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 14:10:13 PDT 2016
--------*/

int main()
{
    cout << boolalpha;
    cout << endl;
    cout << "testing count_vowels: true's should mean passed: " << endl;
    cout << "---------------------------------------" << endl;
    cout << "(count_vowels(\"\") == 0): " 
         << (count_vowels("") == 0) << endl;
    cout << "(count_vowels(\"AUEIOaeiou\") == 10): " 
         << (count_vowels("AUEIOaeiou") == 10) << endl;
    cout << "(count_vowels(\"moo hey!\") == 3): " 
         << (count_vowels("moo hey!") == 3) << endl;
    cout << "(count_vowels(\"mmmmmmmmm\") == 0): " 
         << (count_vowels("mmmmmmmmm") == 0) << endl;
    cout << endl;

    return EXIT_SUCCESS;
}