Skip to content

Commit

Permalink
Update sourceinfo while creating filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishajr authored and hurl-bot committed Jan 20, 2025
1 parent 5dcc035 commit 9328eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hurl/src/runner/filter/xpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ mod tests {
value: FilterValue::XPath {
space0: Whitespace {
value: String::new(),
source_info: SourceInfo::new(Pos::new(7, 1), Pos::new(8, 1)),
source_info: SourceInfo::new(Pos::new(6, 1), Pos::new(7, 1)),
},
expr: Template {
delimiter: None,
elements: vec![TemplateElement::String {
value: expr.to_string(),
encoded: expr.to_string(),
}],
source_info: SourceInfo::new(Pos::new(8, 1), Pos::new(8 + expr.len(), 1)),
source_info: SourceInfo::new(Pos::new(7, 1), Pos::new(7 + expr.len(), 1)),
},
},
}
Expand Down

0 comments on commit 9328eca

Please sign in to comment.