Design: 04.01.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: Polymarker element

CHARACTERISTICS: nnnn

OPERATOR SCRIPT: passive test.

DESIGN:

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

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

*** *** *** *** ***   Polymarker 3   *** *** *** *** ***

n = 5
xarr = 2.33 55.55 -4.4   123.0  0.0
yarr = 0.0  3.2   -99.99 3.2e22 -2.2e-22
zarr = 4.44 0.0   0.0    5.5    22.22

<polymarker 3> with n,xarr,yarr,zarr

TEST: #SR 1 2
      "<Inquire current element type and size> should return
       polymarker 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 = polymarker 3 and
   celsiz = values specified by the standard and language binding)

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

*** *** *** *** ***   Polymarker   *** *** *** *** ***

<polymarker> with n,xarr,yarr

TEST: #SR 4 5
      "<Inquire current element type and size> should return
       polymarker 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 = polymarker and
   celsiz = values specified by the standard and language binding)

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

END PROGRAM 1