Skip to content

Commit adf113c

Browse files
committed
test: add unit test in extend
Signed-off-by: Jérémie Drouet <[email protected]>
1 parent 922930b commit adf113c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ mod tests {
242242
should_match(pattern, "10.124.7.8");
243243
}
244244

245+
#[test]
246+
fn extending() {
247+
let mut first = NoProxy::from("foo.bar");
248+
let second = NoProxy::from("*");
249+
first.extend(second);
250+
assert!(first.has_wildcard);
251+
}
252+
245253
#[cfg(feature = "serialize")]
246254
#[test]
247255
fn serialization() {

0 commit comments

Comments
 (0)