Please send questions to
st10@humboldt.edu .
/*-----
Contract: main: void -> int
Purpose: testing program for the function sum_from_file
Examples: when this program is run, the following should
be printed to the screen:
testing sum_from_file: true's should mean passed:
---------------------------------------
(sum_from_file("april_wts.txt") == 291.06): true
by: Sharon Tuttle
last modified: 5-4-10
-----*/
#include <iostream>
#include <cmath>
#include "sum_from_file.h"
using namespace std;
int main()
{
cout << boolalpha;
cout << endl;
cout << "testing sum_from_file: true's should mean passed: " << endl;
cout << "---------------------------------------" << endl;
cout << "(sum_from_file(\"april_wts.txt\") == 291.06): " << (sum_from_file("april_wts.txt") == 291.06) << endl;
cout << endl;
return EXIT_SUCCESS;
}