#include <cstdlib> #include <iostream> #include <string> #include <cmath> #include "rest.h" using namespace std; /*-------- signature: main: void -> int purpose: testing program for the function rest examples: when run, this should output to the screen: testing rest: 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 25 13:48:31 PDT 2016 --------*/ int main() { cout << boolalpha; cout << endl; cout << "testing rest: true's should mean passed: " << endl; cout << "---------------------------------------" << endl; cout << "(rest(\"moo\") == \"oo\"): " << (rest("moo") == "oo") << endl; cout << "(rest(\"c\") == \"\"): " << (rest("c") == "") << endl; cout << "(rest(\"How are you today?\") == \"ow are you today?\"): " << (rest("How are you today?") == "ow are you today?") << endl; cout << endl; return EXIT_SUCCESS; }