Skip to content

Commit

Permalink
Fix internal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed May 10, 2024
1 parent 1830865 commit b421a0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/path/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,6 @@ mod test {
(r#"foo."a\"a"."b\\b".bar"#, Some(r#"foo."a\"a"."b\\b".bar"#)),
("<invalid>", None),
(r#""🤖""#, Some(r#""🤖""#)),
(".(a|b)", Some("(a|b)")),
(".(a|b|c)", Some("(a|b|c)")),
("foo.(a|b|c)", Some("foo.(a|b|c)")),
("[0].(a|b|c)", Some("[0].(a|b|c)")),
(".(a|b|c).foo", Some("(a|b|c).foo")),
(".( a | b | c ).foo", Some("(a|b|c).foo")),
];

for (path, expected) in test_cases {
Expand Down
2 changes: 1 addition & 1 deletion src/value/value/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod at_path_tests {

#[test]
fn test_complex() {
let path = parse_value_path("[2].foo.(bar | baz )[1]").unwrap();
let path = parse_value_path("[2].foo.baz[1]").unwrap();
let value = Value::Object([("bar".into(), vec![12].into())].into()); //value!({ "bar": [12] });

let baz_value = Value::Array(vec![Value::Null, value.clone()]);
Expand Down

0 comments on commit b421a0e

Please sign in to comment.