Skip to content

Commit 7aacb8c

Browse files
committed
add tests
1 parent 92c61b0 commit 7aacb8c

File tree

6 files changed

+364
-820
lines changed

6 files changed

+364
-820
lines changed

rfc9535/src/tests.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fn union_quotes() -> Queried<()> {
1414
assert_eq!(
1515
vec,
1616
vec![
17-
(&json!("ab"), "$[''a'']".to_string()).into(),
18-
(&json!("bc"), "$[''b'']".to_string()).into(),
17+
(&json!("ab"), "$['a']".to_string()).into(),
18+
(&json!("bc"), "$['b']".to_string()).into(),
1919
]
2020
);
2121

@@ -34,7 +34,7 @@ fn space_between_selectors() -> Queried<()> {
3434

3535
assert_eq!(
3636
vec,
37-
vec![(&json!("ab"), "$[''a''][''b'']".to_string()).into(),]
37+
vec![(&json!("ab"), "$['a']['b']".to_string()).into(),]
3838
);
3939

4040
Ok(())
@@ -106,7 +106,7 @@ fn name_sel() -> Queried<()> {
106106

107107
let vec = js_path("$['\\/']", &json)?;
108108

109-
assert_eq!(vec, vec![(&json!("A"), "$[''\\/'']".to_string()).into(),]);
109+
assert_eq!(vec, vec![(&json!("A"), "$['\\/']".to_string()).into(),]);
110110

111111
Ok(())
112112
}
@@ -278,7 +278,7 @@ fn space_test() -> Queried<()> {
278278
assert_eq!(
279279
vec,
280280
vec![
281-
(&json!("A"), "$['\' \'']".to_string()).into(),
281+
(&json!("A"), "$[\' \']".to_string()).into(),
282282
]
283283
);
284284

rfc9535/test_suite/results.csv

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Total; Passed; Failed; Date
2-
687; 650; 26; 2025-03-16 11:50:00
3-
687; 650; 25; 2025-03-16 11:51:32
42
687; 650; 25; 2025-03-16 11:54:46
53
687; 650; 25; 2025-03-16 11:55:12
64
687; 650; 25; 2025-03-16 11:55:25
@@ -9,3 +7,5 @@ Total; Passed; Failed; Date
97
687; 650; 25; 2025-03-16 11:58:52
108
687; 650; 25; 2025-03-16 13:02:53
119
687; 651; 24; 2025-03-16 19:37:57
10+
687; 643; 32; 2025-03-17 22:18:52
11+
687; 651; 24; 2025-03-17 22:21:55

0 commit comments

Comments
 (0)