Please send questions to
st10@humboldt.edu .
//---------------------------------------------------------------
// File: test_fib.cpp
// Name: Sharon M. Tuttle
// last modified: 1-28-05
//
// Purpose: tester for function fib
//--------------------------------------------------------------
#include <iostream>
#include "fib.h"
using namespace std;
int main()
{
// set-up declarations
// tests and associated cout's
cout << endl;
cout << "Testing function fib..." << endl;
cout << endl;
cout << "1's mean test passed, 0's mean test failed:" << endl;
cout << "-------------------------------------------" << endl;
cout << ( fib(1) == 1 ) << endl;
cout << ( fib(2) == 1 ) << endl;
cout << ( fib(3) == 2 ) << endl;
cout << ( fib(8) == 21 ) << endl;
return EXIT_SUCCESS;
}