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 27, 2024
1 parent 9a515eb commit 5d96ec2
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 @@ -638,10 +638,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 5d96ec2

Please sign in to comment.