Design: 04.01.01/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: Polyline 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
*** *** *** *** *** Polyline 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
<polyline 3> with n, xarr, yarr, zarr
TEST: #SR 1 2
"<Inquire current element type and size> should return
polyline 3 as the type of the created element and the
appropriate element size for a multipoint element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
(celtyp = polyline 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 a multipoint polyline 3."
<inquire current element content> to set celcon
pass/fail depending on
(celcon = representation as specified by the standard and language binding)
<polyline 3> with 1, xarr, yarr, zarr
TEST: #SR 1 2
"<Inquire current element type and size> should return
polyline 3 as the type of the created element and the
appropriate element size for a single point element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
(celtyp = polyline 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 a single point polyline 3."
<inquire current element content> to set celcon
pass/fail depending on
(celcon = representation as specified by the standard and language binding)
*** *** *** *** *** Polyline *** *** *** *** ***
<polyline> with n, xarr, yarr
TEST: #SR 4 5
"<Inquire current element type and size> should return
polyline as the type of the created element and the
appropriate element size for a multipoint element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
(celtyp = polyline and
celsiz = values specified by the standard and language binding)
TEST: #SR 4 6
"<Inquire current element content> should return the standard
representation for a multipoint polyline."
<inquire current element content> to set celcon
pass/fail depending on
(celcon = representation as specified by the standard and language binding)
<polyline> with 1, xarr, yarr
TEST: #SR 4 5
"<Inquire current element type and size> should return
polyline as the type of the created element and the
appropriate element size for a single point element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
(celtyp = polyline and
celsiz = values specified by the standard and language binding)
TEST: #SR 4 6
"<Inquire current element content> should return the standard
representation for a single point polyline."
<inquire current element content> to set celcon
pass/fail depending on
(celcon = representation as specified by the standard and language binding)
END PROGRAM 1