Design: 04.02.02.02/P01

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 1: Simple setting and inquiring

CHARACTERISTICS: ynnn

OPERATOR SCRIPT: passive test.

DESIGN:

Use <inquire current element content> throughout to determine:
    celval = current element value as set by program
    recval = auxiliary element values implied by the standard's
             representation conventions.

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

*** *** *** *** *** Polymarker index *** *** *** *** ***
<set polymarker index>:
    polymarker_index = 8

TEST: #SR 1 4
      "<Inquire current element type and size> should return
       polymarker index as the type of the created element and
       the appropriate element size."
<inquire current element type and size> for current element type
pass/fail depending on
  (current_element_type = polymarker index
   celsiz               = values specified by the standard)

TEST: #SR 2 4
      "<Inquire current element content> should return the
       standard representation for the polymarker index value."
<inquire current element content> for current element representation
pass/fail depending on
  (celval = 8 and
   recval = auxiliary values specified by the standard)

*** *** *** *** polymarker representation set and inquire *** ***

<set polymarker representation>:
   index       = 4
   marker_type = 3
   size_scale  = 0.25
   color       = 4
<inquire polymarker representation> for index #4, as set

TEST: #SR 11 14
      "Polymarker attributes should be returned as set."
pass/fail depending on
   (marker_type = 3        and
    size_scale  = 0.25     and
    colour      = 4

END PROGRAM 1