Skip to content

Commit

Permalink
test: Add further tests for failure modes when parsing relative scrat…
Browse files Browse the repository at this point in the history
…chpad offsets
  • Loading branch information
notheotherben committed Dec 5, 2024
1 parent 784dbcc commit 070a28b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ mod tests {
.to_string()
)
);

assert!(resolver.get_scratchpad("^not-a-number").is_err());
assert!(resolver.get_scratchpad("^-1").is_err());
}

#[test]
Expand Down

0 comments on commit 070a28b

Please sign in to comment.