SDXorg / test-models

A collection of System Dynamics models implemented in various environments with a canonical output
MIT License
27 stars 22 forks source link

Test 3d subscripts defined in slices by length, breadth #34

Closed JamesPHoughton closed 8 years ago

JamesPHoughton commented 8 years ago

We currently have a test for 3d subscripts defined in slices by depth:

One Dimensional Subscript:
    Entry 1, Entry 2, Entry 3
    ~   
    ~       |

Second Dimension Subscript:
    Column 1, Column 2
    ~   
    ~       |

Third Dimension Subscript:
    Depth 1, Depth 2
    ~   
    ~       |

Initial Values[One Dimensional Subscript,Second Dimension Subscript,Depth 1]=
    1, 2; 3, 4; 5, 6; ~~|
Initial Values[One Dimensional Subscript,Second Dimension Subscript,Depth 2]=
    2, 4; 5, 3; 1, 4;
    ~   
    ~       |

Its possible that array creation routines could be fooled by slices taken in other ways, ie, by varying the index of the first or second dimension subscript, and so we should construct a test for each.

JamesPHoughton commented 8 years ago

Added in https://github.com/SDXorg/test-models/commit/04bccefc3f923a4c0e94e514fc0bb7625117e1d8