File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ impl Foo {
15
15
}
16
16
17
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 ]"
18
+ //@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 1 ]"
19
+ //@ is "$.index[?(@.docs=='has span')].span.end" "[15, 2 ]"
20
20
// FIXME: this doesn't work due to https://github.com/freestrings/jsonpath/issues/91
21
21
// is "$.index[?(@.inner.impl.is_synthetic==true)].span" null
22
22
pub struct Foo ;
Original file line number Diff line number Diff line change
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]"
You can’t perform that action at this time.
0 commit comments