Skip to content

Commit 745278a

Browse files
committed
Extend test_not_in
1 parent 6f7dda4 commit 745278a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/de/map.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,4 +1192,18 @@ fn test_not_in() {
11921192
not_in(&["some", "tag", "included"], &tag, Decoder::utf8()).unwrap(),
11931193
false
11941194
);
1195+
1196+
let tag_ns = BytesStart::new("ns1:tag");
1197+
assert_eq!(
1198+
not_in(&["no", "such", "tags"], &tag_ns, Decoder::utf8()).unwrap(),
1199+
true
1200+
);
1201+
assert_eq!(
1202+
not_in(&["some", "tag", "included"], &tag_ns, Decoder::utf8()).unwrap(),
1203+
false
1204+
);
1205+
assert_eq!(
1206+
not_in(&["some", "namespace", "ns1:tag"], &tag_ns, Decoder::utf8()).unwrap(),
1207+
true
1208+
);
11951209
}

0 commit comments

Comments
 (0)