Skip to content

Commit

Permalink
chore: add RFC9535 compliance test suite (#81)
Browse files Browse the repository at this point in the history
This change adds the RFC9535 compliance test suite to the project from
https://github.com/jsonpath-standard/jsonpath-compliance-test-suite.
Many of the test cases are failing so the included test in lib.rs is
suppressed for now and only used to print an informative summary.
  • Loading branch information
disintegrator authored Jan 1, 2025
1 parent 0a69c56 commit bfaa1f2
Show file tree
Hide file tree
Showing 4 changed files with 10,965 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pest_derive = "2.0"
thiserror = "2.0.9"

[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }
criterion = "0.5.1"
colored = "2"

[[bench]]
name = "regex"
Expand Down
10 changes: 10 additions & 0 deletions src/fixtures/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

# Use this script to download the RFC9535 compliance suite and prepare it for
# use in tests.

script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)

url="https://raw.githubusercontent.com/jsonpath-standard/jsonpath-compliance-test-suite/refs/heads/main/cts.json"

curl -s $url | jq -r '.tests' > "$script_dir/rfc9535-cts.json"
Loading

0 comments on commit bfaa1f2

Please sign in to comment.