Skip to content

Commit bfaa1f2

Browse files
chore: add RFC9535 compliance test suite (#81)
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.
1 parent 0a69c56 commit bfaa1f2

File tree

4 files changed

+10965
-0
lines changed

4 files changed

+10965
-0
lines changed

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ pest_derive = "2.0"
1919
thiserror = "2.0.9"
2020

2121
[dev-dependencies]
22+
serde = { version = "1.0", features = ["derive"] }
2223
criterion = "0.5.1"
24+
colored = "2"
2325

2426
[[bench]]
2527
name = "regex"

src/fixtures/prepare.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# Use this script to download the RFC9535 compliance suite and prepare it for
4+
# use in tests.
5+
6+
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
7+
8+
url="https://raw.githubusercontent.com/jsonpath-standard/jsonpath-compliance-test-suite/refs/heads/main/cts.json"
9+
10+
curl -s $url | jq -r '.tests' > "$script_dir/rfc9535-cts.json"

0 commit comments

Comments
 (0)