diff options
| author | Alona Enraght-Moony <code@alona.page> | 2025-03-21 00:16:41 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2025-03-21 00:48:09 +0000 |
| commit | 13335e313c96fecd30e4ec28dececda046b6304b (patch) | |
| tree | 70cfeeaeb1a1d9e1ea393e729066ec76da7c84b5 /tests/rustdoc-json/reexport/in_root_and_mod.rs | |
| parent | 42631d80272a27957dcbcb6cb56327038aaa9784 (diff) | |
| download | rust-13335e313c96fecd30e4ec28dececda046b6304b.tar.gz rust-13335e313c96fecd30e4ec28dececda046b6304b.zip | |
tests/rustdoc-json: change assertions to use RFC 9535 jsonpath
Diffstat (limited to 'tests/rustdoc-json/reexport/in_root_and_mod.rs')
| -rw-r--r-- | tests/rustdoc-json/reexport/in_root_and_mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rustdoc-json/reexport/in_root_and_mod.rs b/tests/rustdoc-json/reexport/in_root_and_mod.rs index e0c54f9d7fd..005004e3b86 100644 --- a/tests/rustdoc-json/reexport/in_root_and_mod.rs +++ b/tests/rustdoc-json/reexport/in_root_and_mod.rs @@ -1,13 +1,13 @@ -//@ !has "$.index[?(@.name=='foo')]" +//@ !has "$.index[*].name" '"foo"' mod foo { - //@ has "$.index[?(@.name=='Foo')]" + //@ has "$.index[*].name" '"Foo"' pub struct Foo; } -//@ has "$.index[*].inner[?(@.use.source=='foo::Foo')]" +//@ has "$.index[*].inner.use.source" '"foo::Foo"' pub use foo::Foo; pub mod bar { - //@ has "$.index[*].inner[?(@.use.source=='crate::foo::Foo')]" + //@ has "$.index[*].inner.use.source" '"crate::foo::Foo"' pub use crate::foo::Foo; } |
