Skip to content

Commit

Permalink
test: adjust verification test for features
Browse files Browse the repository at this point in the history
  • Loading branch information
Mollemoll committed May 15, 2024
1 parent da6f680 commit 4c6d4d6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,16 @@ mod tests {

#[test]
fn test_verify() {
let tax_id = TaxId::new("SE123456789101").unwrap();
#[cfg(feature="eu_vat")]
let value = "SE123456789101";
#[cfg(feature="gb_vat")]
let value = "GB123456789";
#[cfg(feature="ch_vat")]
let value = "CHE123456789";
#[cfg(feature = "no_vat")]
let value = "NO123456789";

let tax_id = TaxId::new(value).unwrap();
let verifier = TestVerifier;
let verification = verifier.verify(&tax_id).unwrap();
assert_eq!(verification.status(), &VerificationStatus::Verified);
Expand Down

0 comments on commit 4c6d4d6

Please sign in to comment.