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

  Purpose: testing program for the function cheer

  Examples: when this is run, the following should be printed
      to the screen:
testing function cheer
----------------------
should see a 3-HIP cheer, followed by a true test:
HIP
HIP
HIP
HOORAY!
true

should see a 5-hip cheer, followed by a true test:
HIP
HIP
HIP
HIP
HIP
HOORAY!
true

should see a 0-HIP cheer, followed by a true test:
HOORAY!
true

should see a 0-HIP cheer, followed by a true test:
HOORAY!
true

  by: Sharon Tuttle
  last modified: 2016-11-16
--------*/

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

int main()
{
    cout << boolalpha;     

    cout << "testing function cheer" << endl;
    cout << "----------------------" << endl;

    cout << "should see a 3-HIP cheer, followed by true:"
         << endl;
    cout << (cheer(3) == 3) << endl;

    cout << endl;
    cout << "should see a 5-HIP cheer, followed by true:"
         << endl;
    cout << (cheer(5) == 5) << endl;

    cout << endl;
    cout << "should see a 0-HIP cheer, followed by true:"
         << endl;
    cout << (cheer(0) == 0) << endl;

    cout << endl;
    cout << "should see a 0-HIP cheer, followed by true:"
         << endl;
    cout << (cheer(-1) == 0) << endl;

    return EXIT_SUCCESS;
}