Skip to content

Commit

Permalink
extra test case for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
asmello committed Mar 31, 2024
1 parent f25c0bf commit 6595e74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,11 @@ mod tests {
let a = Pointer::from_static("/foo");
let b = Pointer::from_static("/");
assert_eq!(a.intersection(b), base);

let base = Pointer::from_static("");
let a = Pointer::from_static("/fooqux");
let b = Pointer::from_static("/foobar");
assert_eq!(a.intersection(b), base);
}

#[test]
Expand Down

0 comments on commit 6595e74

Please sign in to comment.