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

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

  purpose: testing program for the function abs_value

  examples: when run, this should output to the screen:
testing abs_value: 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 18 13:30:27 PDT 2016
--------*/

int main()
{
    cout << boolalpha;
    cout << endl;
    cout << "testing abs_value: true's should mean passed: " << endl;
    cout << "---------------------------------------" << endl;
    cout << "(abs_value(-3) == 3): " 
         << (abs_value(-3) == 3) << endl;
    cout << "(abs_value(0) == 0): " 
         << (abs_value(0) == 0) << endl;
    cout << "(abs_value(3) == 3): " 
         << (abs_value(3) == 3) << endl;
    cout << endl;

    return EXIT_SUCCESS;
}