Checking the rules for values set and tested - Gnorion/BizVR GitHub Wiki

Checking the rules for values set and tested

Suppose we have these two decision tables.

image

The first table determines a person's category based on age

image

The second table uses that category to determine something else.

image

Do you see some potential problems with these tables?

The validation engine will observe that:

Attribute category is set to 'unborn' by a rule but the value is never tested by any other rule
Attribute category is set to 'adolescent' by a rule but the value is never tested by any other rule
Attribute category is tested for ='teen' but no value in this range is ever set by a rule

There are other problems too with these rules:

if age in months in[12..13) then result not specified 
if age in months >17 then result not specified