Feature #164

Feature #201: Add a range check object in Inspector model

Possibility to set a value range in the compare csv file for the cell

Added by Urban Wicklander 6 months ago. Updated about 1 month ago.

Status:Closed Start date:12/05/2011
Priority:Normal Due date:
Assignee:John Lundbäck % Done:

100%

Category:Model Spent time: -
Target version:2012a

History

Updated by Staffan Sandberg 6 months ago

  • Category set to Model
  • Target version set to Unplanned

The CompareCSV object is designed to compare value pairs and is not suited to handle ranges.
Please explain in more detail why this feature is required and what problem it actualy would solve.

Updated by Staffan Sandberg 5 months ago

  • Status changed from New to Feedback

Updated by Urban Wicklander 5 months ago

When starting to use float the exact value migth not be easy to add into compare csv and therefore the range would be a way of solving this.

Updated by John Lundbäck 5 months ago

Inspector is using an epsilon management internally to ensure that two values compared are treated correctly (or rather as expected mathematically). Also note that Inspector itself is using floating point mathematics for all numeric calculation.

The IsEqual operator is implemented as: If abs(A - B) < epsilon then the values are treated as equal.

The default precision i.e epsilon is set to 4 decimals at the moment. 1.00001 and 1.000001 are therefore equal whereas 1.001 and 1.0001 are not.

Updated by Urban Wicklander 4 months ago

After some discussion here at VCE it is not only just because the need for float we would need the possibility to set upp a range in the expected csv.
I have also heard use cases were the expected value should be within a value range to be correct and not exactly an exact value. When this could happen I have not invetigated, but it is somthing that developers that have worked for a while at VCE have experienced and told me.

Updated by John Lundbäck about 1 month ago

  • Status changed from Feedback to Closed
  • Assignee set to John Lundbäck
  • Target version changed from Unplanned to 2012a
  • % Done changed from 0 to 100
  • Parent task set to #201

A new Inspector model object have been added that handles range checks specified in a CSV file for 2012a release.

Also available in: Atom PDF