// testQuadEqn.cc  P. Conrad for CISC181, Spring 2007
// Test Driven Development of solver for quadratic equations

#include <iostream>
using namespace std;

// return the number of roots that a quadratic equation has, i.e. 1 or 2
int howManyRoots(double a, double b, double c);

// return the number of real roots that a quadratic equation has
// i.e. 0, 1 or 2
int howManyRealRoots(double a, double b, double c);

int main()
{
  int numFailures = 0;
  
  // for x^2 - x + -6, we expect to have two real roots  3 and -2
  
  int expectedAnswer = 2  ;
  int actualAnswer = howManyRoots( 1  , -1 , -6  );

  cout << "Test 1: ";
  if (expectedAnswer == actualAnswer)
    {
      cout << "Success!\n";
    }
  else
    {
      cout << "Failure!\n";
      numFailures++;
    }
  
  return numFailures;
}



