Design: 04.03.02.01/P03
This is an abstract, language-independent design. Grim
details may be found in the
corresponding source code.
You may return to the
documentation
for the module containing this program design, or to the
entire hierarchical table of
topics covered by the PVT.
PROGRAM 3: Setting and inquiring colour model
CHARACTERISTICS: ynnn
OPERATOR SCRIPT: passive test.
DESIGN:
*** *** *** *** Initial colour model *** *** *** ***
TEST: #SR 10
"<Inquire colour model> should be able to determine the
initial colour model."
<Inquire colour model> to determine
inimod = initial colour model
pass/fail depending on (no error returned)
if inimod = RGB then
newmod = CIE
else
newmod = RGB
endif
<set colour model> newmod
<inquire colour model> to determine curmod
TEST: #SR 9 10
"<Set colour model> should be able to change colour model
from its default setting."
pass/fail depending on (newmod = curmod)
*** *** *** *** Redefined colour model *** *** *** ***
if curmod = RGB then
newmod = CIE
else
newmod = RGB
endif
<set colour model> newmod
<inquire colour model> to determine curmod
TEST: #SR 9 10
"<Set colour model> should be able to set colour model
and then re-set it."
pass/fail depending on (newmod = curmod)
END PROGRAM 3