Design: 06.01.01/P02
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 2: Behavior of scaling
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: passive test.
DESIGN:
TEST: #SR 1 2 5
"<Scale 3> should return a correct representation for the
transformation to scale a 3D point, with non-zero parameters."
Set scale parameters (fx,fy,fz) to (-33.3, 0.0076, 2.2)
<Scale 3> with fx,fy,fz returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 5
"<Scale 3> should return a correct representation for the
transformation to scale a 3D point, with zero parameters."
Set scale parameters (fx,fy,fz) to (0.0, 0.0076, 0.0)
<Scale 3> with fx,fy,fz returns act4x4 = actual array
Compute exp4x4 = expected array
pass/fail depending on (act4x4 represents same transformation as exp4x4)
TEST: #SR 1 2 6
"<Scale> should return a correct representation for the
transformation to scale a 2D point, with non-zero parameters."
Set scale parameters (fx,fy) to (-33.3, 0.0076)
<Scale> with fx,fy returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
TEST: #SR 1 2 6
"<Scale> should return a correct representation for the
transformation to scale a 2D point, with zero parameters."
Set scale parameters (fx,fy) to (0.0, 0.0)
<Scale> with fx,fy returns act3x3 = actual array
Compute exp3x3 = expected array
pass/fail depending on (act3x3 represents same transformation as exp3x3)
END PROGRAM 2