+
+ ##############
+
+ # test code for set_var_if_undefined.
+ run_test=0
+ if [ $run_test != 0 ]; then
+ echo running tests on set_var_if_undefined.
+ flagrant=petunia
+ set_var_if_undefined flagrant forknordle
+ check_result "testing if defined variable would be whacked"
+ if [ $flagrant != petunia ]; then
+ echo set_var_if_undefined failed to leave the test variable alone
+ exit 1
+ fi
+ unset bobblehead_stomper
+ set_var_if_undefined bobblehead_stomper endurance
+ if [ $bobblehead_stomper != endurance ]; then
+ echo set_var_if_undefined failed to set a variable that was not defined yet
+ exit 1
+ fi
+ fi
+