Skip to content

Commit

Permalink
✅ Test against upstream's default and example XMLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jokeyrhyme committed Nov 18, 2024
1 parent e5a1264 commit 4b30cc2
Show file tree
Hide file tree
Showing 6 changed files with 653 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,14 @@ mod tests {
"#;

let busconfig = Config::parse(input).expect("should parse XML input");
let want = HashSet::from_iter([String::from("ANONYMOUS"), String::from("EXTERNAL")]);
let diff = busconfig.auth.symmetric_difference(&want);

assert_eq!(diff.count(), 0);
assert_eq!(
busconfig,
Config {
auth: HashSet::from_iter([String::from("ANONYMOUS"), String::from("EXTERNAL")]),
..Default::default()
}
);
}

#[test]
Expand Down
Loading

0 comments on commit 4b30cc2

Please sign in to comment.