We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caec498 commit 671adadCopy full SHA for 671adad
tests/rustdoc-json/impls/auto.rs
@@ -15,8 +15,8 @@ impl Foo {
15
}
16
17
// Testing spans, so all tests below code
18
-//@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 0]"
19
-//@ is "$.index[?(@.docs=='has span')].span.end" "[15, 1]"
+//@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 1]"
+//@ is "$.index[?(@.docs=='has span')].span.end" "[15, 2]"
20
// FIXME: this doesn't work due to https://github.com/freestrings/jsonpath/issues/91
21
// is "$.index[?(@.inner.impl.is_synthetic==true)].span" null
22
pub struct Foo;
tests/rustdoc-json/span.rs
@@ -0,0 +1,4 @@
1
+pub mod bar {}
2
+// This test ensures that spans are 1-indexed.
3
+//@ is "$.index[?(@.name=='span')].span.begin" "[1, 1]"
4
+//@ is "$.index[?(@.name=='bar')].span.begin" "[1, 1]"
0 commit comments