Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by smtuttle at Fri Oct 22 08:52:21 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
#include "boa.h"
using namespace std;
/*--------------------------------------------------
Contract: boa_test : void -> bool
Purpose: expects nothing, and produces whether boa's
selectors return what is expected for an example boa
Examples: boa_test( ) == true
--------------------------------------------------*/
bool boa_test( )
{
// first: exercise each constructor by creating a local
// (usually static) instance of your new class
// this is a local boa object -- a local instance of the
// boa class -- whose scope, or meaning, is JUST the
// function body it is declared in
boa george("fuschia", 50, "crocodiles");
return (george.get_color() == "fuschia") and
(george.get_length() == 50) and
(george.get_food() == "crocodiles");
}