Design: 06.01.02/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: Setting and inquiring global transformations

CHARACTERISTICS: nnnn

OPERATOR SCRIPT: passive test.

DESIGN:

Use <inquire current element type and size> thoughout to determine:
    celtyp = current element type
    celsiz = current element size

Use <inquire current element content> throughout to determine:
    celcon = current element content

            | 2.2 -33.33e33 9.9e-11 |
matrix m3 = | 4.4   5.5     6.6     |
            | 0.0  -5.2     9.9     |

            | 2.2 -33.33e33 9.9e-11   1.34 |
matrix m4 = | 4.4   5.5     6.6      12.4  |
            | 0.0  -5.2     9.9     123.0  |
            | 3.1   4.1     5.9265   66.66 |

<Set global transformation 3> with m4

TEST: #SR 9 10
      "<Inquire current element type and size> should return
       set global transformation 3 as the type of the created
       element and the appropriate element size."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
  (celtyp = set global transformation 3 and
   celsiz = values specified by the standard and language binding)

TEST: #SR 9 11
      "<Inquire current element content> should return the standard
       representation for set global transformation 3."
<inquire current element content> to set celcon
pass/fail depending on
  (celcon = representation as specified by the standard and language binding)


<Set global transformation> with m3

TEST: #SR 12 13
      "<Inquire current element type and size> should return
       set global transformation as the type of the created
       element and the appropriate element size."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
  (celtyp = set global transformation and
   celsiz = values specified by the standard and language binding)

TEST: #SR 12 14
      "<Inquire current element content> should return the standard
       representation for set global transformation."
<inquire current element content> to set celcon
pass/fail depending on
  (celcon = representation as specified by the standard and language binding)

END PROGRAM 2