ring_area's examples
during funct_play run! nano to fix examples *comment* in
ring_area.cpp (in nano:
nano)[st10@nrs-labs lab8]$ nano ring_area.cpp
nano to fix example's displayed and actual call
in ring_area_ck_expect.cpp[st10@nrs-labs lab8]$ nano ring_area_ck_expect.cpp
[st10@nrs-labs lab8]$ funct_compile ---------------------------------------------- Welcome to the 03-13-13 version of funct_compile! ---------------------------------------------- Are there any already-created C++ functions OR CLASSES (in the current working directory) which the function to be compiled uses? (type y if so, n if not) your answer: y Enter the name of an already-created function or class (created in the current directory), or q to quit: function or class name: circ_area Enter the next name of an already-created function or class (created in the current directory), or q to quit: function or class name: q What is the name of your function? (note: this script assumes this function is in a file in the current working directory named after the function and ending with .cpp) function name: ring_area COMPILING ring_area.cpp... ----------------------------------------------------------------- ring_area.cpp COMPILED! 8-) trying to compile ring_area_ck_expect.cpp... Would you like to run ring_area_ck_expect? (type y if so, n if not) your answer: y testing ring_area: true's should mean passed: --------------------------------------- (abs(ring_area(10, 1) - (314.159 - 3.14159)) < .001): true (abs(ring_area(2, 1) - (circ_area(2) - 3.14159)) < .001): true Enter a C++ expression involving: ring_area circ_area ...and type enter (or type q to quit): q Quitting funct_compile ... goodbye. [st10@nrs-labs lab8]$