Design: 02.02.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: Application data
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
dr = data record to hold
integers: 174, 175, 176
reals: 17.4, 17.5, 17.6
strings: "This is a application data test string.", "This is another."
<application data> with dr
TEST: #SR 4 5
"<Inquire current element type and size> should return
application data 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 = application data and
celsiz = values specified by the standard and language binding)
TEST: #SR 4 6
"<Inquire current element content> should return the standard
representation for application data."
<inquire current element content> to set celcon
pass/fail depending on
(celcon = representation as specified by the standard and language binding)
END PROGRAM 2