Skip to content

Commit

Permalink
feat: add basic jq test case
Browse files Browse the repository at this point in the history
  • Loading branch information
w-lfchen committed Mar 3, 2024
1 parent 0493e85 commit a731de0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/simplexpr/src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,5 +545,6 @@ mod tests {
lazy_evaluation_and(r#"false && "null".test"#) => Ok(DynVal::from(false)),
lazy_evaluation_or(r#"true || "null".test"#) => Ok(DynVal::from(true)),
lazy_evaluation_elvis(r#""test"?: "null".test"#) => Ok(DynVal::from("test")),
jq_basic_index(r#"jq("[7,8,9]", ".[0]")"#) => Ok(DynVal::from(7)),
}
}

0 comments on commit a731de0

Please sign in to comment.