#include <cstdlib> #include <iostream> #include <string> #include <cmath> #include "next_sound.h" using namespace std; /*-------- signature: main: void -> int purpose: testing program for the function next_sound examples: when run, this should output to the screen: testing next_sound: 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 18 13:48:39 PDT 2016 --------*/ int main() { cout << boolalpha; cout << endl; cout << "testing next_sound: true's should mean passed: " << endl; cout << "---------------------------------------" << endl; cout << "(next_sound(\"moo\") == \"baa\"): " << (next_sound("moo") == "baa") << endl; cout << "(next_sound(\"baa\") == \"la la la\"): " << (next_sound("baa") == "la la la") << endl; cout << "(next_sound(\"la la la\") == \"oink\"): " << (next_sound("la la la") == "oink") << endl; cout << "(next_sound(\"oink\") == \"moo\"): " << (next_sound("oink") == "moo") << endl; cout << "(next_sound(\"arf\") == \"???\"): " << (next_sound("arf") == "???") << endl; cout << endl; return EXIT_SUCCESS; }