Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipptool: Add predicate for testing the number of occurrences of an attribute #7

Open
michaelrsweet opened this issue May 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request priority-low
Milestone

Comments

@michaelrsweet
Copy link
Member

One of OpenPrinting's GSoC students asked about the ability to test the number of objects that operations like Get-Jobs return, however ipptool cannot do that yet.

Suggested syntax would be something like:

EXPECT-ALL attribute OCCURS 42
EXPECT-ALL attribute OCCURS >1
EXPECT-ALL attribute OCCURS <42

The OCCURS predicate would count the number of occurrences and then compare equality (42), greater than (>1), or less than (<42).

Would also be useful for validating support for the limit attribute...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
Development

No branches or pull requests

1 participant