Skip to content

Commit

Permalink
Extend test_not_in
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphoseer committed Apr 12, 2024
1 parent 6f7dda4 commit 745278a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/de/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,4 +1192,18 @@ fn test_not_in() {
not_in(&["some", "tag", "included"], &tag, Decoder::utf8()).unwrap(),
false
);

let tag_ns = BytesStart::new("ns1:tag");
assert_eq!(
not_in(&["no", "such", "tags"], &tag_ns, Decoder::utf8()).unwrap(),
true
);
assert_eq!(
not_in(&["some", "tag", "included"], &tag_ns, Decoder::utf8()).unwrap(),
false
);
assert_eq!(
not_in(&["some", "namespace", "ns1:tag"], &tag_ns, Decoder::utf8()).unwrap(),
true
);
}

0 comments on commit 745278a

Please sign in to comment.