Prev · NextSTR #4189: Add support for compound value tests

Status:4 - Pending
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:ipptool
Summary:Add support for compound value tests
Version: -feature
Created By:mike
Assigned To:mike
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

No files


Trouble Report Dialog:

Name/Time/Date/Text
mike: 11:41 Sep 13, 2012
 
Add support for:

    EXPECT name1 VALUE =foo AND name2 VALUE =bar
    EXPECT name1 VALUE =foo OR name2 VALUE =bar
    EXPECT name1 ITH-VALUE =foo AND name2 ITH-VALUE =bar
    EXPECT name1 ITH-VALUE =foo OR name2 ITH-VALUE =bar
    EXPECT name1 WITH-ALL-VALUES =foo AND name2 WITH-ALL-VALUES =bar
    EXPECT name1 WITH-ALL-VALUES =foo OR name2 WITH-ALL-VALUES =bar

where "VALUE" tests apply to any value, "ITH-VALUE" tests apply to the same index (the "i'th value"), and "WITH-ALL-VALUES" tests apply to all value of the named attribute.

The current implementation should enforce the same boolean logic between each matching expression.