Wildcards without the ? prefix (#422)
This commit is contained in:
parent
7e04eb51ff
commit
5de08da32c
15 changed files with 287 additions and 262 deletions
|
|
@ -21,8 +21,8 @@ pub enum BuilderArg {
|
|||
}
|
||||
|
||||
/// When defining a `BuilderArg`, it can be done from 3 different inputs:
|
||||
/// i. (&str, &str): this is to define a origin-key pair, ie. ?attestation_pod["attestation"])
|
||||
/// ii. &str: this is to define a Value wildcard, ie. ?distance
|
||||
/// i. (&str, &str): this is to define a origin-key pair, ie. attestation_pod["attestation"])
|
||||
/// ii. &str: this is to define a Value wildcard, ie. distance
|
||||
///
|
||||
/// case i.
|
||||
impl From<(&str, &str)> for BuilderArg {
|
||||
|
|
|
|||
|
|
@ -240,8 +240,8 @@ mod tests {
|
|||
let request = parse(
|
||||
r#"
|
||||
REQUEST(
|
||||
SumOf(?a, ?b, ?c)
|
||||
Equal(?a, 10)
|
||||
SumOf(a, b, c)
|
||||
Equal(a, 10)
|
||||
)
|
||||
"#,
|
||||
¶ms,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue