feldob / InPUT

A descriptive and programming language independent format and API for the simplified configuration, documentation, and design of computer experiments.
7 stars 25 forks source link

Design.setValue() has the same problems as DesignSpace.next() #45

Open finkn opened 10 years ago

finkn commented 10 years ago

Just like DesignSpace.next(), Design.setValue() ignores all ranges in a multi-range with exclusive limits, except the first range. So only values from the first range are legal.

Mixed inclusive/exclusive (multi-range) limits also cause setValue to throw an ArrayIndexOutOfBoundsException.

See https://github.com/finkn/InPUTspec/blob/master/main/src/net/finkn/inputspec/v050/SetValueTest.java for details.