-
Notifications
You must be signed in to change notification settings - Fork 522
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
Support Shorthand Predicates #171
Comments
Can we use |
Anyway, if we keep both syntaxes (textual and shorthand) why not having a shorthand for |
|
Rational
Current Hurl predicates syntax is text based and can be a little tedious (see #164):
A more "natural" way of writting this snippet could be:
Shorthand Proposed Syntax
And the following predicates (not present in Hurl 1.1.0 grammar)
Negate a predicate is still possible :
Even if there is a "better" way of writing these asserts: (somethong maybe adressable by
hurlfmt
?)Comparison
An Hurl snippet using litteral predicates:
An Hurl snippet using shorthand predicates:
Questions
contains
,exist
, etc...). Maybehurlfmt
can raise a warning. in this case. Hurl syntax is not too popular and can be modified.The text was updated successfully, but these errors were encountered: