Superset of Interpreter
There is a variation of the set concept called superset.
| Import |
| com.greenpepper.interpreter |
| GreenPepper.Interpreters |
The SupersetInterpreter is used when you want the set represented by the rows in the specifications to be a superset of the rows returned by the SUD.
This means that the test can contains rows that are not contained in the SUD (no missing).
| rule for |
Superset of |
| spec values |
sud values |
annotations? |
[a] [b] [c] |
a,b,c |
[a right] [b right] [c right] |
[a] [b] |
a,b,c |
[a right] [b right] [c surplus] |
[a] [b] [c] |
a,b |
[a right] [b right] [c] |
Duplicates
Duplicate values in the specifications are considered as separates elements in a superset.
| rule for |
Superset Of |
| spec values |
sud values |
annotations? |
[a] [a] [b] |
a,a |
[a right] [a right] [b] |
[a] [b] |
a,a |
[a right] [b] [a surplus] |