Please send questions to
st10@humboldt.edu .
****************
STRICT COMPILE OPTION - DONE
****************
last modified: 12-12-11
Have a strict-compile option that causes probable-error warnings
to cause compiler errors.
STATUS: DONE
FIRST PASSED: 12-08-11
acceptance tests last attempted: 12-12-11
acceptance tests last passed: 12-12-11
------------------
acceptance test 1
------------------
1. (make sure that /Users/smtuttle/480xp-tests/bad-functs has
circ_area with an extraneous statement
2 + 2;
that should have been set up by script post-3)
(if necessary:
2. run:
python3 theGui.pyw
3. Click "Change directory" and navigate to the following
directory:
/Users/smtuttle/480xp-tests/bad-functs
...and click "Choose".
(This directory has a circ_area that has an unused and ugly
extra bizarre statement
2 + 2;
)
)
4. highlight circ_area, and click Edit
(Should see filled-in recipe steps for function circ_area)
(make sure odd statement:
2 + 2;
...is there in body)
5. Click "Compile, Test, and Save".
should see that it compiles, and tests pass
6. Now click "Compile strictly" checkbox, and then
click "Compile, Test, and Save" again.
It should NOT compile this time, true?
7. Now click "Detailed error messages" checkbox,
(leave "Compile strictly" checkbox checked), and then
click "Compile, Test, and Save" again.
It still should not compile, but now you should get
a warning-that-is-now-an-error noting that a statement
has no effect;
LAST TESTED: 12-12-11
LAST PASSED: 12-12-11