Skip to content

Commit

Permalink
Add missing validation
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Oct 26, 2023
1 parent 6599520 commit 5ff423b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fn should_be_valid() {
let mut alpha3 = HashSet::new();
let mut alpha2 = HashSet::new();
for country in LIST {
assert_eq!(country.alpha2.len(), 2);
assert_eq!(country.alpha3.len(), 3);

assert!(countries.insert(country));
assert!(ids.insert(country.id));
assert!(name.insert(country.name));
Expand Down

0 comments on commit 5ff423b

Please sign in to comment.