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

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

  purpose: testing program for the function grade_in_range

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

  by: funct_play
  last modified: Fri Oct 14 12:31:38 PDT 2016
--------*/

int main()
{
    cout << boolalpha;
    cout << endl;
    cout << "testing grade_in_range: true's should mean passed: " << endl;
    cout << "---------------------------------------" << endl;
    cout << "(grade_in_range(-3) == false): " 
         << (grade_in_range(-3) == false) << endl;
    cout << "(grade_in_range(0) == true): " 
         << (grade_in_range(0) == true) << endl;
    cout << "(grade_in_range(1.5) == true): " 
         << (grade_in_range(1.5) == true) << endl;
    cout << "(grade_in_range(100) == true): " 
         << (grade_in_range(100) == true) << endl;
    cout << "(grade_in_range(105) == false): " 
         << (grade_in_range(105) == false) << endl;
    cout << endl;

    return EXIT_SUCCESS;
}