Design: 04.01.07/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: Cell array 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

*** *** *** ***   Normal cell array 3   *** *** *** ***

<cell array 3>, using:

   parallelogram points:
         P      Q     R
   x = 55.55 -99.99  3.2e5
   y =  0.0    3.   -3.2e-15
   z =  4.44   0.0   0.00023

   cell array index values:

    |    --> 1st dimension
    |    0  2  9  3  7  2  3
    V    7  2  8  6  3  8  7
   2nd   1  0  2  3  9  3  8

TEST: #SR 1 2
      "<Inquire current element type and size> should return
       cell array 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 = cell array 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 cell array 3."
<inquire current element content> to set celcon
pass/fail depending on
  (celcon = representation as specified by the standard and
            language binding)

*** *** *** ***   Normal cell array   *** *** *** ***

<cell array> using:

   rectangle points:
         P      Q
   x = 55.55 -99.99
   y =  0.0    3.

   cell array index values:

    |    --> 1st dimension
    |    0  2  9  3  7  2  3
    V    7  2  8  6  3  8  7
   2nd   1  0  2  3  9  3  8

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

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

*** *** *** ***   Degenerate cell array 3   *** *** *** ***

degenerate <cell array 3>, using:

         P     Q     R
   x =  1.0   1.0   1.0
   y =  2.0   2.0   2.0
   z =  2.0   3.0   5.0

   cell array index values:

    |    --> 1st dimension
    |    9  3
    V    8  6
   2nd   1  0

TEST: #SR 1 2
      "<Inquire current element type and size> should return
       cell array 3 as the type of the created element and the
       appropriate element size for a degenerate element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
  (celtyp = cell array 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 degenerate cell array 3."
<inquire current element content> to set celcon
pass/fail depending on
  (celcon = representation as specified by the standard and language binding)

*** *** *** ***   Degenerate cell array   *** *** *** ***

degenerate <cell array>, using:

         P     Q
   x =  1.0   3.0
   y =  2.0   2.0

   cell array index values:

    |    --> 1st dimension
    |    9  3
    V    8  6
   2nd   1  0

TEST: #SR 6 7
      "<Inquire current element type and size> should return
       cell array as the type of the created element and the
       appropriate element size for a degenerate element."
<inquire current element type and size> to set celtyp, celsiz
pass/fail depending on
  (celtyp = cell array and
   celsiz = values specified by the standard and language binding)

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

END PROGRAM 1